projectScene
open override fun projectScene(width: Int, height: Int, renderOptions: RenderOptions, lightDirection: Vector): PreparedScene
Projects the 3D scene to 2D screen space for the given viewport size.
Applies back-face culling, bounds checking, lighting, and depth sorting according to renderOptions, then returns a platform-agnostic PreparedScene containing sorted render commands ready for drawing.
Parameters
width
The viewport width in pixels
height
The viewport height in pixels
renderOptions
Controls culling, sorting, and other rendering options
lightDirection
The direction of the light source (will be normalized internally)