Skip to content

RenderNormalDebug

Overview

RenderProgram for showing normals colored for debugging

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

Class RenderNormalDebug

import { RenderNormalDebug } from 'scenerystack/alpenglow';

Constructor

new RenderNormalDebug( normalProgram : RenderProgram )

Instance Methods

getName() : string

withChildren( children : RenderProgram[] ) : RenderNormalDebug

equalsTyped( other : this ) : boolean

(protected)

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

(protected)

getNormalDebug( normal : Vector4 ) : Vector4

evaluate( context : RenderEvaluationContext ) : Vector4

writeInstructions( instructions : RenderInstruction[] )

serialize() : SerializedRenderNormalDebug

Static Methods

deserialize( obj : SerializedRenderNormalDebug ) : RenderNormalDebug

Class RenderInstructionNormalDebug

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

(readonly)

Type SerializedRenderNormalDebug

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

Source Code

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