Merge branch 'master' of cane:bkaradzic/bgfx

This commit is contained in:
Branimir Karadžić
2016-02-28 16:34:36 -08:00
2 changed files with 1 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ void main()
float opacity = u_wfOpacity;
float thickness = u_wfThickness;
if (!gl_FrontFacing) { opacity *= 0.5; }
if (gl_FrontFacing) { opacity *= 0.5; }
vec3 fw = abs(dFdx(v_bc)) + abs(dFdy(v_bc));
vec3 val = smoothstep(vec3_splat(0.0), vec3_splat(fw*thickness), v_bc);