recolor.vp 478 B

12345678910111213141516171819202122232425
  1. #version 140
  2. uniform v_inputs
  3. {
  4. mat4 view_proj;
  5. };
  6. // positions are in world space
  7. in vec4 position;
  8. in vec2 texcoord0;
  9. // custom vertex attributes from material
  10. in vec4 newcolor;
  11. in vec4 outline;
  12. out vec2 var_texcoord0;
  13. // custom vertex attributes sent to fragment program
  14. out vec4 new_color;
  15. out vec4 new_outline;
  16. void main()
  17. {
  18. gl_Position = view_proj * vec4(position.xyz, 1.0);
  19. var_texcoord0 = texcoord0;
  20. new_color = newcolor;
  21. new_outline = outline;
  22. }