Go to the source code of this file.
|
| typedef struct ShadowClipVertex | ShadowClipVertex |
| | A clipping link with a pointer to its attributes and inline vertex storage.
|
| typedef struct ShadowClipPolygon | ShadowClipPolygon |
| | A circular list of shadow vertices being clipped to a texture boundary.
|
| typedef long double(* | ShadowClipDistance) (const ConvertedModelVertex *vertex) |
| | Compute a vertex's signed distance from a shadow-clipping boundary.
|
◆ SHADOW_CLIP_VERTEX_COUNT
| #define SHADOW_CLIP_VERTEX_COUNT 64 |
The number of entries of g_aShadowClipVertexPool.
◆ ShadowClipVertex
| typedef struct ShadowClipVertex ShadowClipVertex |
A clipping link with a pointer to its attributes and inline vertex storage.
◆ ShadowClipPolygon
| typedef struct ShadowClipPolygon ShadowClipPolygon |
A circular list of shadow vertices being clipped to a texture boundary.
◆ ShadowClipDistance
Compute a vertex's signed distance from a shadow-clipping boundary.
◆ LerpShadowClipVertex()
Take a clipping node from the free list and interpolate all eight vertex components.
- Parameters
-
| first | The vertex at fraction 0. |
| second | The vertex at fraction 1. |
| fraction | The weight of the second vertex. |
- Returns
- The allocated node, or null on pool exhaustion with patches enabled.
- Ghidra address:
- BRD3D: 0x10010b00
- Ghidra address:
- BRGlide: 0x1000e060
◆ ClipShadowPolygon()
Clip a circular polygon against a signed texture-boundary distance.
With patches enabled, pool exhaustion discards the polygon and recycles its nodes.
- Parameters
-
| polygon | The circular polygon to modify. |
| distance | The signed distance callback. |
- Ghidra address:
- BRD3D: 0x100109a0
- Ghidra address:
- BRGlide: 0x1000df00
◆ g_aShadowClipVertexPool
The pool of the vertices of the clipping of shadows.
- Ghidra address:
- BRD3D: 0x102e54c0
- Ghidra address:
- BRGlide: 0x102e0ca8
◆ g_pShadowClipVertexFreeList
The first free vertex of g_aShadowClipVertexPool.
- Ghidra address:
- BRD3D: 0x102e5ecc
- Ghidra address:
- BRGlide: 0x102e16b4