Advertisement
Guest User

Untitled

a guest
May 24th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.53 KB | None | 0 0
  1. [vertex]
  2. attribute vec3 vp_Vertex;
  3. attribute vec3 vp_Color;
  4.  
  5. uniform mat4 vp_ProjectionMatrix;
  6. uniform mat4 vp_ModelViewMatrix;
  7.  
  8. void main()
  9. {
  10.     gl_FrontColor = vec4(vp_Color, 1.0);
  11.     gl_Position = vec4(vp_Vertex, 1.0) * vp_ModelViewMatrix * vp_ProjectionMatrix;
  12. }
  13.  
  14. [fragment]
  15. uniform sampler2D vp_ShadowMap;
  16. varying float fogFactor;
  17.  
  18. void main(void)
  19. {
  20.     //vec4 shadowSample = texture2D(vp_ShadowMap, vec2(0.0,0.0));
  21.     //gl_FragColor = mix(vec4(0.2, 0.2, 0.2, 1.0), gl_Color, fogFactor );
  22.     gl_FragColor = gl_Color;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement