Merge pull request #414 from BorealFeast/PBRisComing

Fixed indirect light extraction in Material
This commit is contained in:
Rémy Bouquet 2016-02-16 20:04:54 +01:00
commit bc73765d7c

View File

@ -713,12 +713,14 @@ public class Material implements CloneableSmartAsset, Cloneable, Savable {
ambientLightColor.addLocal(l.getColor());
if(removeLights){
lightList.remove(l);
j--;
}
}
if (l instanceof LightProbe) {
probe = (LightProbe)l;
if(removeLights){
lightList.remove(l);
j--;
}
}
}