mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Merge branch 'master' of cane:bkaradzic/bgfx
This commit is contained in:
@@ -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);
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user