customLut

actual fun customLut(data: FloatArray, dimension: Int): ColorGrading.Builder

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Return

This Builder, for chaining calls

Parameters

data

LUT data as a flat array of RGB triplets; size must be dimension * dimension * dimension * 3 floats

dimension

Dimension of the custom LUT (e.g. 16, 32, 64)

@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "throws UnsupportedOperationException — customLut is not bound in filament.js.")
expect fun customLut(data: FloatArray, dimension: Int): ColorGrading.Builder

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Return

This Builder, for chaining calls

Parameters

data

LUT data as a flat array of RGB triplets; size must be dimension * dimension * dimension * 3 floats

dimension

Dimension of the custom LUT (e.g. 16, 32, 64)

actual fun customLut(data: FloatArray, dimension: Int): ColorGrading.Builder

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Return

This Builder, for chaining calls

Parameters

data

LUT data as a flat array of RGB triplets; size must be dimension * dimension * dimension * 3 floats

dimension

Dimension of the custom LUT (e.g. 16, 32, 64)

actual fun customLut(data: FloatArray, dimension: Int): ColorGrading.Builder

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Return

This Builder, for chaining calls

Parameters

data

LUT data as a flat array of RGB triplets; size must be dimension * dimension * dimension * 3 floats

dimension

Dimension of the custom LUT (e.g. 16, 32, 64)

@PlatformGap(platforms = [FilamentPlatform.WEB], behavior = "throws UnsupportedOperationException — customLut is not bound in filament.js.")
actual fun customLut(data: FloatArray, dimension: Int): ColorGrading.Builder

Specifies a custom 3D color grading LUT to map the final sRGB color, applied after post-processing in LDR (sRGB space).

Return

This Builder, for chaining calls

Parameters

data

LUT data as a flat array of RGB triplets; size must be dimension * dimension * dimension * 3 floats

dimension

Dimension of the custom LUT (e.g. 16, 32, 64)