UNPKG

iv-3d-lib

Version:

A reusable ThreeJS library providing features for Ivee 3D Editor.

23 lines (19 loc) 441 B
import { Expr } from '../wgl-util-cfgs'; export class Iv3dShader { id: string; vertexProgram: string; fragmentProgram: string; uniforms: Iv3dUniform[] = []; timeExpr: Expr = new Expr(); } export class Iv3dUniform { name: string; type: Iv3dUniformType; value: any; } export enum Iv3dUniformType { 'f' = <any>'f', 'v2' = <any>'v2', 'v3' = <any>'v3', 't' = <any>'t' }