Skip to content

Commit

Permalink
remove all CC_USE_RGBE_OUTPUT (#17549)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-e authored Aug 16, 2024
1 parent 25818aa commit 515ef06
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions cocos/rendering/custom/web-pipeline-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,17 +227,15 @@ export class ProbeHelperQueue {

removeMacro (): void {
for (const subModel of this.probeMap) {
let patches: IMacroPatch[] = [];
patches = patches.concat(subModel.patches!);
if (!patches.length) continue;
for (let j = 0; j < patches.length; j++) {
const patch = patches[j];
if (patch.name === CC_USE_RGBE_OUTPUT) {
patches.splice(j, 1);
break;
}
if (!subModel.patches) continue;
const patches = subModel.patches.filter(
(patch) => patch.name !== CC_USE_RGBE_OUTPUT,
);
if (patches.length === 0) {
subModel.onMacroPatchesStateChanged(null);
} else {
subModel.onMacroPatchesStateChanged(patches);
}
subModel.onMacroPatchesStateChanged(patches);
}
}
applyMacro (model: Model, probeLayoutId: number): void {
Expand Down

0 comments on commit 515ef06

Please sign in to comment.