Skip to content

RenderNormalize

Overview

RenderProgram for normalizing the result of another RenderProgram

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

Class RenderNormalize

import { RenderNormalize } from 'scenerystack/alpenglow';

Constructor

new RenderNormalize( program : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderNormalize

getSimplified( children : RenderProgram[] ) : RenderProgram | null

(protected)

evaluate( context : RenderEvaluationContext ) : Vector4

writeInstructions( instructions : RenderInstruction[] )

serialize() : SerializedRenderNormalize

Static Methods

deserialize( obj : SerializedRenderNormalize ) : RenderNormalize

Class RenderInstructionNormalize

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

(readonly)

Type SerializedRenderNormalize

import type { SerializedRenderNormalize } from 'scenerystack/alpenglow';

Source Code

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