Commits

Cliff Biffle  committed 32563c5

Removed variable point-size rendering (because it's wrong and I'm going to redo it) and color texturing (same reason).

  • Participants
  • Parent commits 886054c
  • Branches shaders

Comments (0)

Files changed (2)

File KVDepthView.m

   glEnable(GL_CULL_FACE);
   glFrontFace(GL_CCW);
   glShadeModel(GL_SMOOTH);
-  glEnable(GL_VERTEX_PROGRAM_POINT_SIZE);
   glEnable(GL_POINT_SMOOTH);
 
   GLfloat diffuseColor[4] = { 1.f, 1.f, 1.f, 1.0f };
   
   if (vertex.z <= 0.) {
     gl_FrontColor = vec4(0,0,0,0);
-    gl_PointSize = 0.;
-    return;
   } else {
     gl_FrontColor = light_vertex(normal);
   }
-  
-  if (useTextureFromCamera) {
-    vec2 fovScale = vec2(1.02, 1.30);
-    vec2 skew = vec2(-0.0, -0.05) / vertex.z;
-    vec2 colorCoord = (gl_Vertex.xy * fovScale + skew) * -0.5 + 0.5;
-    gl_FrontColor = texture2D(colorTex, colorCoord);
-  }
-  
-  vec4 vertexInEye = gl_Position;
-	float dist = distance(vertexInEye.xyz, vec3(0,0,0));
-	float psize = clamp(1.5 / dist * vertex.z, gl_Point.sizeMin, gl_Point.sizeMax);
-	gl_PointSize = psize;
 }