pass2_vertex.glsl 173 B

12345678910
  1. void main()
  2. {
  3. vec4 uv = vec4(gl_Vertex.xyz, 1.0) * 0.5 + 0.5;
  4. gl_TexCoord[0] = uv;
  5. gl_TexCoord[1] = uv;
  6. gl_TexCoord[2] = uv;
  7. gl_Position = vec4(gl_Vertex.xyz, 1.0);
  8. }