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)

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