We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 392906b commit 35cfee0Copy full SHA for 35cfee0
1 file changed
packages/front/src/core/PostproductionRenderer/src/edge-detection-pass.ts
@@ -279,16 +279,9 @@ export class EdgeDetectionPass extends Pass {
279
if ("isLODGeometry" in mesh.geometry) {
280
continue;
281
}
282
-
283
- // This might break for objects with multiple materials
284
- // but to prevent overengineering, let's leave it for now
285
- if (!Array.isArray(mesh.material) && mesh.material.visible === false) {
286
- continue;
287
- }
288
289
if (apply) {
290
mesh.userData.edgePassPreviousMaterial = mesh.material;
291
- mesh.material = this._overrideMaterial;
+ mesh.material = [this._overrideMaterial];
292
} else if ("edgePassPreviousMaterial" in mesh.userData) {
293
mesh.material = mesh.userData.edgePassPreviousMaterial;
294
0 commit comments