Guest User

Untitled

a guest
Jul 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. void main(void)
  2. {
  3. vec3 eyeDir = normalize(gl_Vertex - view_position);
  4. vViewVec = normalize(reflect(eyeDir, gl_Normal));
  5. vTexCoord = gl_MultiTexCoord0.xyz;
  6. gl_Position = ftransform();
  7. }
  8.  
  9. void main(void)
  10. {
  11. gl_FragColor = texture2D(tex1, vViewVec);
  12. }
Add Comment
Please, Sign In to add comment