Symbian^3 port

This commit is contained in:
Shinovon 2026-04-29 05:15:13 +05:00
parent 77cdaaf97e
commit 3eb71f2cc5
106 changed files with 2098 additions and 745 deletions

View file

@ -178,6 +178,7 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
if(!normals)
return;
Sphere *atomsphere = atomic->getWorldBoundingSphere();
// TODO: for this we would use an atomic's world sectors, but we don't have those yet
FORLIST(lnk, this->localLights){
if(lightData->numLocals >= maxLocals)
@ -188,7 +189,6 @@ World::enumerateLights(Atomic *atomic, WorldLights *lightData)
continue;
// check if spheres are intersecting
Sphere *atomsphere = atomic->getWorldBoundingSphere();
V3d dist = sub(l->getFrame()->getLTM()->pos, atomsphere->center);
if(length(dist) < atomsphere->radius + l->radius)
lightData->locals[lightData->numLocals++] = l;