UNPKG

@edsilv/ami.js

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/214063/46479857-4cd66e80-c7f0-11e8-9585-5748409c9490.png" width="60%"> </p>

35 lines (34 loc) 591 B
/** * @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', }, uOpacity: { type: 'f', value: 1, typeGLSL: 'float', }, uTextureFilled: { type: 't', value: [], typeGLSL: 'sampler2D', }, }; } }