2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 07:26:09 +00:00

Various lighting fixes

This commit is contained in:
2022-05-12 01:10:06 -04:00
parent e69a4fdd98
commit 4e06ea1bb5
6 changed files with 27 additions and 34 deletions

View File

@@ -9,7 +9,7 @@ constexpr zeus::CVector3f kDefaultDirection(0.f, -1.f, 0.f);
float CLight::CalculateLightRadius() const {
if (FLT_EPSILON > x28_distL && FLT_EPSILON > x2c_distQ) {
return 0.f;
return FLT_MAX;
}
float intensity = GetIntensity();
@@ -77,8 +77,8 @@ CLight CLight::BuildDirectional(const zeus::CVector3f& dir, const zeus::CColor&
}
CLight CLight::BuildSpot(const zeus::CVector3f& pos, const zeus::CVector3f& dir, const zeus::CColor& color,
float angle) {
return CLight(ELightType::Spot, pos, dir, color, angle);
float cutoff) {
return CLight(ELightType::Spot, pos, dir, color, cutoff);
}
CLight CLight::BuildPoint(const zeus::CVector3f& pos, const zeus::CColor& color) {