Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(void)
- {
- vec3 eyeDir = normalize(gl_Vertex - view_position);
- vViewVec = normalize(reflect(eyeDir, gl_Normal));
- vTexCoord = gl_MultiTexCoord0.xyz;
- gl_Position = ftransform();
- }
- void main(void)
- {
- gl_FragColor = texture2D(tex1, vViewVec);
- }
Add Comment
Please, Sign In to add comment