Projektordner für das Team Deutsches Museum (FORUM).
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

WarpPerspective.vert 360B

123456789101112131415161718192021
  1. #version 150
  2. // OF default uniforms and attributes
  3. uniform mat4 modelViewProjectionMatrix;
  4. uniform vec4 globalColor;
  5. in vec4 position;
  6. in vec2 texcoord;
  7. in vec4 color;
  8. // App uniforms and attributes
  9. out vec2 vTexCoord;
  10. out vec4 vColor;
  11. void main(void)
  12. {
  13. vTexCoord = texcoord;
  14. vColor = globalColor;
  15. gl_Position = modelViewProjectionMatrix * position;
  16. }