12345678910111213141516171819202122 |
- {
- $api: "opengl",
- name: "Diffuse shader",
- version: "150",
- type: "fragment",
- // These are shader uniforms
- uniforms: [
- { name: 'l_pos', type: 'vec3'},
- { name: 'l_mat', type: 'mat4'},
- ],
- _meta: "0 0 -34 2.34 123 2.34e-4",
- /* GLSL shader code */
- code: `
- uniform vec3 l_pos;
- uniform mat4 l_mat;
- void main() {
- // ...
- }
- `,
- }
|