ami.js
Version:
<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>
60 lines (57 loc) • 1.13 kB
JavaScript
/**
* @module shaders/localizer/uniforms
*/
export default class {
/**
* Shaders data uniforms
*/
static uniforms() {
return {
'uCanvasWidth': {
type: 'f',
value: 0.,
typeGLSL: 'float',
},
'uCanvasHeight': {
type: 'f',
value: 0.,
typeGLSL: 'float',
},
'uSlice': {
type: 'v4',
value: [0.0, 0.0, 0.0, 0.0],
typeGLSL: 'vec4',
},
'uPlane1': {
type: 'v4',
value: [0.0, 0.0, 0.0, 0.0],
typeGLSL: 'vec4',
},
'uPlaneColor1': {
type: 'v3',
value: [1.0, 1.0, 0.0],
typeGLSL: 'vec3',
},
'uPlane2': {
type: 'v4',
value: [0.0, 0.0, 0.0, 0.0],
typeGLSL: 'vec4',
},
'uPlaneColor2': {
type: 'v3',
value: [1.0, 1.0, 0.0],
typeGLSL: 'vec3',
},
'uPlane3': {
type: 'v4',
value: [0.0, 0.0, 0.0, 0.0],
typeGLSL: 'vec4',
},
'uPlaneColor3': {
type: 'v3',
value: [1.0, 1.0, 0.0],
typeGLSL: 'vec3',
},
};
}
}