@motion-script/core / Background3D
Type Alias: Background3D
Background3D =
Color| {color:Color;type:"color"; } | {texture:Texture3D;type:"texture"; } | {faces: readonly [Texture3D,Texture3D,Texture3D,Texture3D,Texture3D,Texture3D];type:"cubemap"; } | {blurriness?:number;intensity?:number;texture:Texture3D;type:"equirect"; } | {type:"transparent"; }
Defined in: render3d/scene-settings.ts:21
What fills the pixels no geometry covers.
Defaults to "transparent" — the whole point of compositing 3D into a 2D
scene is that the 2D content behind it shows through, so an opaque background
is opt-in. A bare Color is sugar for a solid clear colour.
Union Members
Type Literal
{ color: Color; type: "color"; }
Type Literal
{ texture: Texture3D; type: "texture"; }
A flat image, stretched across the frame.
Type Literal
{ faces: readonly [Texture3D, Texture3D, Texture3D, Texture3D, Texture3D, Texture3D]; type: "cubemap"; }
Six faces, in three's order: +X, -X, +Y, -Y, +Z, -Z.
Type Literal
{ blurriness?: number; intensity?: number; texture: Texture3D; type: "equirect"; }
A 360° panorama. The usual form for a photographic sky.
Type Literal
{ type: "transparent"; }
Let the 2D scene behind show through. The default.