MotionScript

@motion-script/core


@motion-script/core / TextureColorSpace3D

Type Alias: TextureColorSpace3D

TextureColorSpace3D = "srgb" | "linear"

Defined in: render3d/texture.ts:23

Which colour space the texture's data is in.

"srgb" for anything representing a colour an eye would see (albedo/map, emissiveMap), so the renderer linearizes it before lighting maths. "linear" for data maps whose channels are numbers rather than colours (normalMap, roughnessMap, metalnessMap, aoMap, displacementMap) — linearizing those would corrupt them. Each map slot defaults correctly, so this only needs setting for unusual pipelines.