Skip to content

RenderOklabToLinearSRGB

Overview

RenderProgram to convert Oklab => linear sRGB

@author Jonathan Olson <jonathan.olson@colorado.edu>

Class RenderOklabToLinearSRGB

import { RenderOklabToLinearSRGB } from 'scenerystack/alpenglow';

Constructor

new RenderOklabToLinearSRGB( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderOklabToLinearSRGB

writeInstructions( instructions : RenderInstruction[] )

Class RenderInstructionOklabToLinearSRGB

import { RenderInstructionOklabToLinearSRGB } from 'scenerystack/alpenglow';

Instance Methods

toString() : string

equals( other : RenderInstruction, areLocationsEqual : ( a: RenderInstructionLocation, b: RenderInstructionLocation ) => boolean ) : boolean

execute( stack : RenderExecutionStack, context : RenderEvaluationContext, executor : RenderExecutor )

writeBinary( encoder : ByteEncoder, getOffset : ( location: RenderInstructionLocation ) => number )

getBinaryLength() : number

Static Properties

INSTANCE : RenderInstructionOklabToLinearSRGB

(readonly)

Source Code

See the source for RenderOklabToLinearSRGB.ts in the alpenglow repository.