Interface: TexturedSurfaceOptions
Defined in: src/mobjects/three-d/TexturedSurface.ts:12
Options for creating a TexturedSurface
Properties
darkTextureUrl?
optionaldarkTextureUrl:string
Defined in: src/mobjects/three-d/TexturedSurface.ts:18
Optional URL of a secondary (dark/night) texture for day/night blending
doubleSided?
optionaldoubleSided:boolean
Defined in: src/mobjects/three-d/TexturedSurface.ts:28
Whether to render both sides. Default: true
lightDirection?
optionallightDirection:Vector3Tuple
Defined in: src/mobjects/three-d/TexturedSurface.ts:20
Light direction vector for day/night blending. Default: [1, 0, 0] (from +X)
opacity?
optionalopacity:number
Defined in: src/mobjects/three-d/TexturedSurface.ts:22
Opacity from 0 to 1. Default: 1
surface
surface:
Surface3D
Defined in: src/mobjects/three-d/TexturedSurface.ts:14
The parametric surface to apply the texture to
textureOffset?
optionaltextureOffset: [number,number]
Defined in: src/mobjects/three-d/TexturedSurface.ts:26
Texture offset in [u, v]. Default: [0, 0]
textureRepeat?
optionaltextureRepeat: [number,number]
Defined in: src/mobjects/three-d/TexturedSurface.ts:24
Texture repeat in [u, v]. Default: [1, 1]
textureUrl
textureUrl:
string
Defined in: src/mobjects/three-d/TexturedSurface.ts:16
URL of the primary texture image