Skip to main content

Interface: TexturedSurfaceOptions

Defined in: mobjects/three-d/TexturedSurface.ts:9

Options for creating a TexturedSurface

Properties

darkTextureUrl?

optional darkTextureUrl: string

Defined in: mobjects/three-d/TexturedSurface.ts:15

Optional URL of a secondary (dark/night) texture for day/night blending


doubleSided?

optional doubleSided: boolean

Defined in: mobjects/three-d/TexturedSurface.ts:25

Whether to render both sides. Default: true


lightDirection?

optional lightDirection: Vector3Tuple

Defined in: mobjects/three-d/TexturedSurface.ts:17

Light direction vector for day/night blending. Default: [1, 0, 0] (from +X)


opacity?

optional opacity: 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?

optional textureOffset: [number, number]

Defined in: mobjects/three-d/TexturedSurface.ts:23

Texture offset in [u, v]. Default: [0, 0]


textureRepeat?

optional textureRepeat: [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