Skip to content

Commit c491ab0

Browse files
author
LAPTOP-BBDAGDBG\Ray
committed
fix: scene culling light造成UBO无法对齐
1 parent 411f98d commit c491ab0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cocos/rendering/custom/scene-culling.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,8 @@ export class LightResource {
821821
// Already added
822822
const existingLightID = this.lightIndex.get(light);
823823
if (existingLightID !== undefined) {
824-
return existingLightID;
824+
return existingLightID * this.elementSize;
825+
// return existingLightID;
825826
}
826827

827828
if (!this.lightBuffer) {

0 commit comments

Comments
 (0)