glsl_diffuse.json5 367 B

12345678910111213141516171819202122
  1. {
  2. $api: "opengl",
  3. name: "Diffuse shader",
  4. version: "150",
  5. type: "fragment",
  6. // These are shader uniforms
  7. uniforms: [
  8. { name: 'l_pos', type: 'vec3'},
  9. { name: 'l_mat', type: 'mat4'},
  10. ],
  11. _meta: "0 0 -34 2.34 123 2.34e-4",
  12. /* GLSL shader code */
  13. code: `
  14. uniform vec3 l_pos;
  15. uniform mat4 l_mat;
  16. void main() {
  17. // ...
  18. }
  19. `,
  20. }