RenderDepthSort¶
Overview¶
RenderProgram that provides splitting based on depth, into a RenderStack
@author Jonathan Olson <jonathan.olson@colorado.edu>
Class RenderDepthSort¶
Constructor¶
new RenderDepthSort( items : RenderPlanar[] )¶
Instance Methods¶
getName() : string¶
withChildren( children : RenderProgram[] ) : RenderDepthSort¶
transformed( transform : Matrix3 ) : RenderProgram¶
getSimplified( children : RenderProgram[] ) : RenderProgram | null¶
(protected)
evaluate( context : RenderEvaluationContext ) : Vector4¶
isSplittable() : boolean¶
split( face : RenderableFace ) : RenderableFace[]¶
The heavy lifting of figuring out what combinations of "orders" of items are possible (front-to-back), and splitting into each possible non-zero-area combination.
serialize() : SerializedRenderDepthSort¶
Static Methods¶
deserialize( obj : SerializedRenderDepthSort ) : RenderDepthSort¶
getProjectionMatrix( near : number, far : number, minX : number, minY : number, maxX : number, maxY : number ) : Matrix4¶
Type SerializedRenderDepthSort¶
- type: "RenderDepthSort"
- items: { program: SerializedRenderProgram; pointA: number[]; pointB: number[]; pointC: number[]; }[]
Source Code¶
See the source for RenderDepthSort.ts in the alpenglow repository.