diff --git a/examples/28-wireframe/fs_wf_wireframe.sc b/examples/28-wireframe/fs_wf_wireframe.sc index a6d4e505..e2ff1420 100644 --- a/examples/28-wireframe/fs_wf_wireframe.sc +++ b/examples/28-wireframe/fs_wf_wireframe.sc @@ -17,7 +17,7 @@ void main() 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); + vec3 val = smoothstep(vec3_splat(0.0), fw*thickness, v_bc); float edge = min(min(val.x, val.y), val.z); // Gets to 0.0 around the edges. vec4 rgba = vec4(color, (1.0-edge)*opacity); diff --git a/examples/runtime/shaders/dx11/fs_wf_wireframe.bin b/examples/runtime/shaders/dx11/fs_wf_wireframe.bin index 7b84b95f..3706b830 100644 Binary files a/examples/runtime/shaders/dx11/fs_wf_wireframe.bin and b/examples/runtime/shaders/dx11/fs_wf_wireframe.bin differ diff --git a/examples/runtime/shaders/dx9/fs_wf_wireframe.bin b/examples/runtime/shaders/dx9/fs_wf_wireframe.bin index 2a06070c..6d992770 100644 Binary files a/examples/runtime/shaders/dx9/fs_wf_wireframe.bin and b/examples/runtime/shaders/dx9/fs_wf_wireframe.bin differ