From 484b1f5199a8c84b6164591a9d5e2f1d64de1bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Tue, 1 Mar 2016 08:24:58 -0800 Subject: [PATCH] Fixed 28-wireframe shader. --- examples/28-wireframe/fs_wf_wireframe.sc | 2 +- .../runtime/shaders/dx11/fs_wf_wireframe.bin | Bin 887 -> 887 bytes .../runtime/shaders/dx9/fs_wf_wireframe.bin | Bin 544 -> 568 bytes 3 files changed, 1 insertion(+), 1 deletion(-) 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 7b84b95f6265cf61fa3484e48a9e65fc18647a07..3706b830375b83fca9c772943e82a933bc864364 100644 GIT binary patch delta 208 zcmey)_ML5lyukhF>GyTsAN`&ftMV$o^_Rj%eG|s|A_f5l5O5O`XmAA5j6lr8z`zO@ zXM)IcL&ZSyK(%0XKqe=Wx`sxe00_7-34qxkwH6Ev97t-w@?otCV48`6L7Rb(fq@IA dfXM+Q-e8Z6frfzu87vegH!=xtR$vNe1ON$R9gqM3 delta 216 zcmey)_ML5lynw{_8`eEs1@Tck**9L${++Q=--NMVh(Uk>1h@nQ8XSQ%BM|d2FtEbK zq4L~7F(rgrusWbpP9${=jX(hqkYW&kvn?1HIFQspEkT56%dz+MDpvoUOzWQt=10I~xYOaK4? diff --git a/examples/runtime/shaders/dx9/fs_wf_wireframe.bin b/examples/runtime/shaders/dx9/fs_wf_wireframe.bin index 2a06070c25bf426a60d615329c52dab2d6a4516a..6d992770f5e8329ee0aa616425e5b2c40cd15526 100644 GIT binary patch delta 143 zcmZ3$vV&!UB%{nksmJx~4GauVCdM!@FflNI*$vS^HY0>R0Vv1}74K$bc+$;^;5RTa xgf3tMt7Qb5!O#F3AIN_)frWvA1!{f+%j6WsJpg5_9Bcpp delta 101 zcmdnNvVdiRBqPg2smGy=4Gatn6Jr<{m>3wq?1pGCn+YU70Vv1}74K$X2<>J?@Ee#I TLKm4V6LgY-?#Vmt=`P{0p2