Interface: ShaderMobjectOptions
Defined in: src/mobjects/shader/ShaderMobject.ts:24
Options for a ShaderMobject.
Properties
blending?
optionalblending:Blending
Defined in: src/mobjects/shader/ShaderMobject.ts:38
Blending mode. Default: THREE.NormalBlending
fragmentShader
fragmentShader:
string
Defined in: src/mobjects/shader/ShaderMobject.ts:26
The GLSL fragment shader source. Required.
height?
optionalheight:number
Defined in: src/mobjects/shader/ShaderMobject.ts:32
Plane height in world units. Default: 4.5
mouse?
optionalmouse:boolean
Defined in: src/mobjects/shader/ShaderMobject.ts:36
Expose the Shadertoy-style iMouse (vec4) uniform. Default: false
opacity?
optionalopacity:number
Defined in: src/mobjects/shader/ShaderMobject.ts:42
Opacity, stored on the mobject. Default: 1
transparent?
optionaltransparent:boolean
Defined in: src/mobjects/shader/ShaderMobject.ts:40
Enable transparency. Default: true
uniforms?
optionaluniforms:Record<string,ShaderUniformValue>
Defined in: src/mobjects/shader/ShaderMobject.ts:34
User-defined uniforms, keyed by GLSL name.
vertexShader?
optionalvertexShader:string
Defined in: src/mobjects/shader/ShaderMobject.ts:28
The GLSL vertex shader source. Default: a pass-through that exposes vUv.
width?
optionalwidth:number
Defined in: src/mobjects/shader/ShaderMobject.ts:30
Plane width in world units. Default: 8