diff --git a/cocos/rendering/custom/scene-culling.ts b/cocos/rendering/custom/scene-culling.ts index 127074b8862..9d93284ff8f 100644 --- a/cocos/rendering/custom/scene-culling.ts +++ b/cocos/rendering/custom/scene-culling.ts @@ -821,7 +821,8 @@ export class LightResource { // Already added const existingLightID = this.lightIndex.get(light); if (existingLightID !== undefined) { - return existingLightID; + return existingLightID * this.elementSize; + // return existingLightID; } if (!this.lightBuffer) {