diff --git a/examples/06-bump/fs_bump.sc b/examples/06-bump/fs_bump.sc index bb25fda82..fe530bd19 100644 --- a/examples/06-bump/fs_bump.sc +++ b/examples/06-bump/fs_bump.sc @@ -70,7 +70,8 @@ void main() normalize(v_normal) ); - vec3 normal = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0; + vec3 normal; + normal.xy = texture2D(u_texNormal, v_texcoord0).xy * 2.0 - 1.0; normal.z = sqrt(1.0 - dot(normal.xy, normal.xy) ); vec3 view = -normalize(v_view); diff --git a/examples/runtime/shaders/gles/fs_bump.bin b/examples/runtime/shaders/gles/fs_bump.bin index 6f5277cba..cef661ba8 100644 Binary files a/examples/runtime/shaders/gles/fs_bump.bin and b/examples/runtime/shaders/gles/fs_bump.bin differ diff --git a/examples/runtime/shaders/glsl/fs_bump.bin b/examples/runtime/shaders/glsl/fs_bump.bin index 7fd3cb418..4b235f82d 100644 Binary files a/examples/runtime/shaders/glsl/fs_bump.bin and b/examples/runtime/shaders/glsl/fs_bump.bin differ