Enable objects for all renderer render categories on added lights.

This commit is contained in:
2026-04-26 05:34:43 +02:00
parent 3e3777cf2d
commit 295d0648f7

View File

@@ -3162,6 +3162,7 @@ export class RuntimeHost {
group.visible = pointLight.enabled;
light.position.set(0, 0, 0);
group.add(light);
enableObjectForAllRendererRenderCategories(group);
return {
group,
@@ -3204,6 +3205,7 @@ export class RuntimeHost {
group.add(light);
lights.push(light);
}
enableObjectForAllRendererRenderCategories(group);
return {
group,
@@ -3244,6 +3246,7 @@ export class RuntimeHost {
light.target.position.set(0, 1, 0);
group.add(light);
group.add(light.target);
enableObjectForAllRendererRenderCategories(group);
return {
group,