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