Skip to content

RenderNormalDebug

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/alpenglow/blob/main/js/render-program/RenderNormalDebug.ts for the most up-to-date information.

Overview

RenderProgram for showing normals colored for debugging

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

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)

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

Type SerializedRenderNormalDebug

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

Source Code

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