Skip to content

Commit

Permalink
Fix for r170
Browse files Browse the repository at this point in the history
  • Loading branch information
FarazzShaikh committed Nov 1, 2024
1 parent 5933253 commit 40b4611
Show file tree
Hide file tree
Showing 2 changed files with 982 additions and 1,919 deletions.
10 changes: 10 additions & 0 deletions package/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,16 @@ export default class CustomShaderMaterial<
}
}

// Override type setter because of this BS: https://github.com/mrdoob/three.js/blob/841ca14e89f3ec925e071a321958e49a883343c0/src/materials/Material.js#L22
Object.defineProperty(this, "type", {
get() {
return base.type;
},
set(value) {
base.type = value;
},
});

return this;
}

Expand Down
Loading

0 comments on commit 40b4611

Please sign in to comment.