UNPKG

gtajesgenga-ami.js

Version:

1. [Hello AMI](#hello-ami) 2. [Features](#features) 3. [Usage](#yarn) 4. [Developer corner](#developer-corner) 5. [Change log](#change-log) 6. [Credits](#credits) 7. [Citations](#citations)

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', }, }; } }