RenderPlanar¶
Overview¶
Represents a RenderProgram on a planar (3d) surface.
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderPlanar¶
TODO: better name
Constructor¶
new RenderPlanar( program : RenderProgram, pointA : Vector3, pointB : Vector3, pointC : Vector3 )¶
Instance Methods¶
getDepth( x : number, y : number ) : number¶
getDepthRange( face : ClippableFace ) : Range¶
Returns the range of potential depth values included in the face.
getDepthSplit( planar : RenderPlanar, face : ClippableFace ) : { ourFaceFront: ClippableFace | null; otherFaceFront: ClippableFace | null }¶
transformed( transform : Matrix3 ) : RenderPlanar¶
withProgram( program : RenderProgram ) : RenderPlanar¶
Instance Properties¶
plane : Plane3¶
(readonly)
Source Code¶
See the source for RenderPlanar.ts in the alpenglow repository.