Skip to content

RenderPremultiply

Overview

RenderProgram to premultiply the input color

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

Class RenderPremultiply

import { RenderPremultiply } from 'scenerystack/alpenglow';

Constructor

new RenderPremultiply( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderPremultiply

writeInstructions( instructions : RenderInstruction[] )

Class RenderInstructionPremultiply

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

(readonly)

Source Code

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