Skip to main content

Interface: TexturedSurfaceOptions

Defined in: src/mobjects/three-d/TexturedSurface.ts:12

Options for creating a TexturedSurface

Properties​

darkTextureUrl?​

optional darkTextureUrl: string

Defined in: src/mobjects/three-d/TexturedSurface.ts:18

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


doubleSided?​

optional doubleSided: boolean

Defined in: src/mobjects/three-d/TexturedSurface.ts:28

Whether to render both sides. Default: true


lightDirection?​

optional lightDirection: Vector3Tuple

Defined in: src/mobjects/three-d/TexturedSurface.ts:20

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


opacity?​

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

optional textureOffset: [number, number]

Defined in: src/mobjects/three-d/TexturedSurface.ts:26

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


textureRepeat?​

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