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)

52 lines (50 loc) 934 B
import { Vector2 } from 'three/src/math/Vector2'; /** * @module shaders/data */ export default class ShadersUniform { static uniforms() { return { uTextureBackTest0: { type: 't', value: [], typeGLSL: 'sampler2D', }, uTextureBackTest1: { type: 't', value: [], typeGLSL: 'sampler2D', }, uOpacity0: { type: 'f', value: 1.0, typeGLSL: 'float', }, uOpacity1: { type: 'f', value: 1.0, typeGLSL: 'float', }, uType0: { type: 'i', value: 0, typeGLSL: 'int', }, uType1: { type: 'i', value: 1, typeGLSL: 'int', }, uTrackMouse: { type: 'i', value: 0, typeGLSL: 'int', }, uMouse: { type: 'v2', value: new Vector2(), typeGLSL: 'vec2', }, }; } }