koolkat

gbuffers_hand.fsh

Dec 28th, 2011
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #version 120
  2.  
  3. uniform sampler2D texture;
  4. uniform sampler2D lightmap;
  5.  
  6. varying vec4 color;
  7. varying vec4 texcoord;
  8. varying vec4 lmcoord;
  9.  
  10. void main() {
  11.  
  12.     gl_FragData[0] = texture2D(texture, texcoord.st) * texture2D(lightmap, lmcoord.st) * color;
  13.     gl_FragData[1] = vec4(vec3(gl_FragCoord.z), 1.0);
  14.        
  15. }
Advertisement
Add Comment
Please, Sign In to add comment