mirror of
https://gitlab.com/shinovon/re3-symbian.git
synced 2026-05-22 17:47:20 +03:00
Symbian^3 port
This commit is contained in:
parent
77cdaaf97e
commit
3eb71f2cc5
106 changed files with 2098 additions and 745 deletions
2
vendor/librw/src/world.cpp
vendored
2
vendor/librw/src/world.cpp
vendored
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue