mirror of
https://github.com/aap/librw.git
synced 2025-12-20 09:29:49 +00:00
implemented generic lighting callback
This commit is contained in:
@@ -37,7 +37,7 @@ enumLights(Matrix *lightmat)
|
||||
ambLight.alpha = 0.0;
|
||||
numDirectionals = 0;
|
||||
// only unpositioned lights right now
|
||||
FORLIST(lnk, world->directionalLights){
|
||||
FORLIST(lnk, world->globalLights){
|
||||
Light *l = Light::fromWorld(lnk);
|
||||
if(l->getType() == Light::DIRECTIONAL){
|
||||
if(numDirectionals >= MAX_LIGHTS)
|
||||
|
||||
Reference in New Issue
Block a user