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.

ControlPoint.vert 471B

1234567891011121314151617181920212223
  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. in vec4 iPositionScale;
  10. in vec4 iColor;
  11. out vec2 vTexCoord;
  12. out vec4 vColor;
  13. void main(void)
  14. {
  15. vTexCoord = texcoord;
  16. vColor = globalColor * iColor;
  17. gl_Position = modelViewProjectionMatrix * vec4(position.xy * iPositionScale.z + iPositionScale.xy, position.zw);
  18. }