From 8f24da81799c4e6a24f769674e6b576acbc19804 Mon Sep 17 00:00:00 2001 From: alteredq Date: Thu, 5 Jul 2012 03:32:26 +0200 Subject: [PATCH] Unflipped godrays shaders. --- examples/js/ShaderGodRays.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/js/ShaderGodRays.js b/examples/js/ShaderGodRays.js index a43c567d35..caf9dc22e2 100644 --- a/examples/js/ShaderGodRays.js +++ b/examples/js/ShaderGodRays.js @@ -67,7 +67,7 @@ THREE.ShaderGodRays = { "void main() {", - "vUv = vec2( uv.x, 1.0 - uv.y );", + "vUv = uv;", "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", "}" @@ -176,7 +176,7 @@ THREE.ShaderGodRays = { "void main() {", - "vUv = vec2( uv.x, 1.0 - uv.y );", + "vUv = uv;", "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", "}" @@ -246,7 +246,7 @@ THREE.ShaderGodRays = { "void main() {", - "vUv = vec2( uv.x, 1.0 - uv.y );", + "vUv = uv;", "gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );", "}" -- GitLab