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>

59 lines (57 loc) 1.11 kB
/** * @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', }, }; } }