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

Addition of zombie spawns, player spawns and zones for zombies. Clipmap AABB generation largely modified.

This commit is contained in:
LJW-Dev
2026-03-27 23:51:42 +08:00
committed by Jan Laupetin
parent 98cd833206
commit 1aaf446097
9 changed files with 672 additions and 148 deletions
@@ -2,8 +2,7 @@
#include "../BSPUtil.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <numbers>
namespace BSP
{
@@ -184,9 +183,9 @@ namespace BSP
light->type = GFX_LIGHT_TYPE_OMNI;
light->defName = "white_light_cube";
light->roundness = 0.0f;
light->cosHalfFovInner = cosf(30.0f * (M_PI / 180.0f));
light->cosHalfFovOuter = cosf(55.0f * (M_PI / 180.0f));
light->cosHalfFovExpanded = cosf(55.0f * (M_PI / 180.0f));
light->cosHalfFovInner = cosf(30.0f * (std::numbers::pi_v<float> / 180.0f));
light->cosHalfFovOuter = cosf(55.0f * (std::numbers::pi_v<float> / 180.0f));
light->cosHalfFovExpanded = cosf(55.0f * (std::numbers::pi_v<float> / 180.0f));
}
setLightCommonValues(light, bspLight);
}