2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-06-06 08:42:35 +00:00

Spot lights now are fully implemented, with omni and directional not working.

This commit is contained in:
LJW-Dev
2026-03-07 21:52:10 +08:00
committed by Jan Laupetin
parent 57f0ad8295
commit 21ddc368f5
4 changed files with 186 additions and 67 deletions
+5 -3
View File
@@ -61,13 +61,15 @@ namespace BSP
struct BSPLight
{
BSPLightType type;
vec3_t pos;
vec3_t direction;
vec3_t colour;
float range;
float intensity;
// only used on spot and dir lights
vec3_t pos;
vec3_t direction;
bool hasPosBeenSet;
// angle is in radians. only used on spot/dir lights
float innerConeAngle;
float outerConeAngle;
};