ami.js
Version:
<p align="center"> <img src="https://cloud.githubusercontent.com/assets/214063/23213764/78ade038-f90c-11e6-8208-4fcade5f3832.png" width="60%"> </p>
31 lines (29 loc) • 512 B
JavaScript
/**
* @module shaders/data
*/
export default class ShadersUniform {
static uniforms() {
return {
'uCanvasWidth': {
type: 'f',
value: 0.,
typeGLSL: 'float',
},
'uCanvasHeight': {
type: 'f',
value: 0.,
typeGLSL: 'float',
},
'uWidth': {
type: 'f',
value: 1.,
typeGLSL: 'float',
},
'uTextureFilled': {
type: 't',
value: [],
typeGLSL: 'sampler2D',
},
};
}
}