SHARE
TWEET

Untitled

a guest Dec 30th, 2014 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //shader.fs
  2.  
  3. #version 330
  4.  
  5. out vec4 FragColor;
  6.  
  7. void main()
  8. {
  9.     FragColor = vec4(1.0, 0.0, 0.0, 1.0);
  10. }
  11.  
  12.  
  13. //shader.vs
  14.  
  15. #version 330
  16.  
  17. layout (location = 0) in vec3 Position;
  18.  
  19. uniform float gScale;
  20.  
  21. void main()
  22. {
  23.     gl_Position = vec4(gScale * Position.x, gScale * Position.y, Position.z, 1.0);
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top