Table of Contents

Class SkyboxGeometry

Namespace
PopcorningGuineaPig.Engine.Rendering
Assembly
PopcorningGuineaPig.Engine.dll

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

face SkyboxFace
camera Vector3

Returns

Vector3

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

face SkyboxFace
camera Vector3
corners Span<Vector3>