Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| trs:room_geometry [2021/04/29 21:31] – [Room Light Structure] zdimension | trs:room_geometry [2024/12/13 18:40] (current) – [Room Vertex Structure] stohrendorf | ||
|---|---|---|---|
| Line 287: | Line 287: | ||
| float r, g, b; // Colour of the light | float r, g, b; // Colour of the light | ||
| - | | + | |
| float In; // Cosine of the IN value for light / size of IN value | float In; // Cosine of the IN value for light / size of IN value | ||
| Line 310: | Line 310: | ||
| { | { | ||
| float x, y, z; // Position of light, in world coordinates | float x, y, z; // Position of light, in world coordinates | ||
| - | float r, g, b; // Colour of the light | + | float rad, sqrad; |
| - | + | float den; | |
| - | | + | float r, g, b; |
| - | + | ||
| - | float In; // Cosine of the IN value for light / size of IN value | + | |
| - | float Out; // Cosine of the OUT value for light / size of OUT value | + | |
| }; | }; | ||
| </ | </ | ||
| - | |||
| - | **TODO**: investigate exact meaning of '' | ||
| ''< | ''< | ||
| Line 369: | Line 364: | ||
| | | ||
| uint16_t Attributes; // A set of flags for special rendering effects | uint16_t Attributes; // A set of flags for special rendering effects | ||
| - | | + | |
| }; | }; | ||
| </ | </ | ||
| Line 546: | Line 541: | ||
| uint16_t NumLayerVertices; | uint16_t NumLayerVertices; | ||
| uint16_t NumLayerVerticesWater; | uint16_t NumLayerVerticesWater; | ||
| - | uint16_t | + | uint16_t |
| uint16_t NumLayerRectangles; | uint16_t NumLayerRectangles; | ||
| uint16_t NumLayerTriangles; | uint16_t NumLayerTriangles; | ||
| - | uint16_t | + | uint16_t |
| + | uint16_t NumLayerTrianglesWater; | ||
| uint16_t Filler; | uint16_t Filler; | ||
| - | uint16_t Filler2; | ||
| // The following 6 floats define the bounding box for the layer | // The following 6 floats define the bounding box for the layer | ||
| Line 563: | Line 558: | ||
| float LayerBoundingBoxZ2; | float LayerBoundingBoxZ2; | ||
| - | uint32_t Filler3; | + | uint32_t Filler3; |
| uint32_t VerticesOffset; | uint32_t VerticesOffset; | ||
| uint32_t PolyOffset; | uint32_t PolyOffset; | ||
| - | uint32_t | + | uint32_t |
| } | } | ||
| </ | </ | ||
| - | ''< | + | ''< |
| ===== The Whole Room Structure ===== | ===== The Whole Room Structure ===== | ||
