Skip to content

RenderUnpremultiply

Overview

RenderProgram to unpremultiply the input color

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

Class RenderUnpremultiply

import { RenderUnpremultiply } from 'scenerystack/alpenglow';

Constructor

new RenderUnpremultiply( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderUnpremultiply

writeInstructions( instructions : RenderInstruction[] )

Class RenderInstructionUnpremultiply

import { RenderInstructionUnpremultiply } 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 : RenderInstructionUnpremultiply

(readonly)

Source Code

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