Class SkyboxGeometry
Cube that follows the camera in XZ and sits on GroundY. Raylib-free so tests can lock the invariant.
public static class SkyboxGeometry
- Inheritance
-
SkyboxGeometry
- Inherited Members
Methods
FaceCenter(SkyboxFace, Vector3)
Center of a face. +Y is the ceiling at GroundY + 2 * Extent.
public static Vector3 FaceCenter(SkyboxFace face, Vector3 camera)
Parameters
faceSkyboxFacecameraVector3
Returns
FaceCorners(SkyboxFace, Vector3, Span<Vector3>)
Four inward-facing corners of face. XZ is centered
on camera; Y runs from GroundY
to GroundY + 2 * Extent. Order: UV (0,0), (1,0), (1,1), (0,1).
public static void FaceCorners(SkyboxFace face, Vector3 camera, Span<Vector3> corners)
Parameters
faceSkyboxFacecameraVector3cornersSpan<Vector3>