Commits

Cliff Biffle committed 9d18ba9

Renamed some variables in the vertex shader: I had mis-named the values that result when we drop out of homogeneous space.

Comments (0)

Files changed (1)

   vec4 downVertex = kinect_unproject(depthTex, gl_Vertex + vec4(0, pixelDistanceY, 0, 0));
   
   // Convert out of homogeneous space for the cross product.
-  vec3 right_world = rightVertex.xyz / rightVertex.w;
-  vec3 down_world = downVertex.xyz / downVertex.w;
-  vec3 vertex_world = vertex.xyz / vertex.w;
+  vec3 right3 = rightVertex.xyz / rightVertex.w;
+  vec3 down3 = downVertex.xyz / downVertex.w;
+  vec3 vertex3 = vertex.xyz / vertex.w;
   
-  vec3 tangent = down_world - vertex_world;
-  vec3 bitangent = right_world - vertex_world;
+  vec3 tangent = down3 - vertex3;
+  vec3 bitangent = right3 - vertex3;
   
   normal = cross(tangent, bitangent);