Lightmap Dynamic Bugfix
This commit is contained in:
parent
04692d83cb
commit
274076c5be
1 changed files with 3 additions and 0 deletions
|
@ -1998,6 +1998,9 @@ void RendererSceneCull::_update_instance(Instance *p_instance) {
|
||||||
pair.bvh2 = &p_instance->scenario->indexers[Scenario::INDEXER_VOLUMES];
|
pair.bvh2 = &p_instance->scenario->indexers[Scenario::INDEXER_VOLUMES];
|
||||||
}
|
}
|
||||||
pair.cull_mask = RSG::light_storage->light_get_cull_mask(p_instance->base);
|
pair.cull_mask = RSG::light_storage->light_get_cull_mask(p_instance->base);
|
||||||
|
} else if (p_instance->base_type == RS::INSTANCE_LIGHTMAP) {
|
||||||
|
pair.pair_mask = RS::INSTANCE_GEOMETRY_MASK;
|
||||||
|
pair.bvh = &p_instance->scenario->indexers[Scenario::INDEXER_GEOMETRY];
|
||||||
} else if (geometry_instance_pair_mask & (1 << RS::INSTANCE_REFLECTION_PROBE) && (p_instance->base_type == RS::INSTANCE_REFLECTION_PROBE)) {
|
} else if (geometry_instance_pair_mask & (1 << RS::INSTANCE_REFLECTION_PROBE) && (p_instance->base_type == RS::INSTANCE_REFLECTION_PROBE)) {
|
||||||
pair.pair_mask = RS::INSTANCE_GEOMETRY_MASK;
|
pair.pair_mask = RS::INSTANCE_GEOMETRY_MASK;
|
||||||
pair.bvh = &p_instance->scenario->indexers[Scenario::INDEXER_GEOMETRY];
|
pair.bvh = &p_instance->scenario->indexers[Scenario::INDEXER_GEOMETRY];
|
||||||
|
|
Loading…
Reference in a new issue