light_vs.glsl 419 B

12345678910111213141516171819202122
  1. //shared data between vs/ps
  2. varying lowp vec4 result_color;
  3. varying mediump vec2 result_uv;
  4. varying mediump vec2 result_uv2;
  5. varying mediump vec2 result_pos;
  6. uniform mediump mat4 mat;
  7. attribute vec3 position;
  8. attribute vec4 color;
  9. attribute vec2 uv;
  10. attribute vec2 uv2;
  11. void main()
  12. {
  13. gl_Position = mat * vec4(position, 1.0);
  14. result_color = color;
  15. result_uv = uv;
  16. result_uv2 = uv2;
  17. result_pos = position.xy;
  18. }