RenderNormalDebug¶
Overview¶
RenderProgram for showing normals colored for debugging
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderNormalDebug¶
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¶
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¶
- type: "RenderNormalDebug"
- normalProgram: SerializedRenderProgram
Source Code¶
See the source for RenderNormalDebug.ts in the alpenglow repository.