From 3a573d43a87978741d03d7aecc2bf638a43d77c3 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 2 Nov 2016 18:17:29 +1300 Subject: envmap vert shader bug fix --- src/classes/org/jdesktop/j3d/examples/gl2es2pipeline/envmap.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/org/jdesktop/j3d/examples/gl2es2pipeline/envmap.vert b/src/classes/org/jdesktop/j3d/examples/gl2es2pipeline/envmap.vert index 2cae4ab..2296c83 100644 --- a/src/classes/org/jdesktop/j3d/examples/gl2es2pipeline/envmap.vert +++ b/src/classes/org/jdesktop/j3d/examples/gl2es2pipeline/envmap.vert @@ -35,7 +35,7 @@ void main(void) // compute the transformed normal // GL2ES2: swap built-in variable for Java3d built-in uniforms and attributes gl_* = gl* + declaration (at top) //vec3 Normal = normalize(gl_NormalMatrix * gl_Normal); - vec3 Normal = normalize(glNormalMatrix * glNormal); + Normal = normalize(glNormalMatrix * glNormal); // GL2ES2: swap built-in variable for Java3d built-in uniforms and attributes gl_* = gl* + declaration (at top) //vec4 pos = gl_ModelViewMatrix * gl_Vertex; -- cgit v1.2.3