Maths · function

decodeSrgbInPlace

Every value of values decoded from sRGB in place, but a negative one, which is a sentinel and not a colour (MeshBuilder's emissive colour left to the albedo). For whole arrays of colours picked by eye; see MeshBuildOptions.colorSpace.

Explained in Coordinates and units.

function decodeSrgbInPlace(values: Float32Array): Float32Array
import { decodeSrgbInPlace } from '@driftengine/core';

Parameters

ParameterTypeDescription
valuesFloat32Array