xray.shader 451 B

123456789101112131415161718192021222324252627
  1. [shaders]
  2. vertex =
  3. uniform highp mat4 u_modelViewProjectionMatrix;
  4. attribute highp vec4 a_vertex;
  5. void main()
  6. {
  7. gl_Position = u_modelViewProjectionMatrix * a_vertex;
  8. }
  9. fragment =
  10. uniform lowp vec4 u_color;
  11. void main()
  12. {
  13. gl_FragColor = u_color;
  14. }
  15. [defaults]
  16. u_color = [0.02, 0.02, 0.02, 1.0]
  17. [bindings]
  18. u_modelViewProjectionMatrix = model_view_projection_matrix
  19. [attributes]
  20. a_vertex = vertex