mirror of
https://github.com/godotengine/godot.git
synced 2025-04-13 01:00:35 +08:00
Fixed light culling mask behavior in Mobile and Compat renderers
This commit is contained in:
parent
b3bcb2dc14
commit
fcea158927
@ -3036,6 +3036,10 @@ void RendererSceneCull::_scene_cull(CullData &cull_data, InstanceCullResult &cul
|
||||
|
||||
for (const Instance *E : geom->lights) {
|
||||
InstanceLightData *light = static_cast<InstanceLightData *>(E->base_data);
|
||||
if (!(RSG::light_storage->light_get_cull_mask(E->base) & idata.layer_mask)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
instance_pair_buffer[idx++] = light->instance;
|
||||
if (idx == MAX_INSTANCE_PAIRS) {
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user