- Home /
CombineChildren fouls up lighting
I'm working on optimizing a game for the web that involves a large cityscape with lots of separate buildings. I'm using the CombineChildren script to reduce drawcalls. Unfortunately, this has an odd effect on my lighting -- attached are two screenshots, the lighter one being before using the script and the dark one after using the script. Is there a way to fix this?
http://www.binkworks.com/first.png http://www.binkworks.com/second.png
Best wishes,
-Lincoln Green
Upon further investigation, it seems as though it is just killing ambient lighting -- I can work around it by using angled directional lights. Still open to suggestions -- hardly an optimal solution. ;)
Do you use a culling mask or any other layer-based effects? The Combine Children script doesn't preserve the layer settings for the combined objects. The script can easily be modified if this is the problem.