Same material different opacity

I have thousands of meshes with identical material, but with different opacity. Is there a way to reuse the material among them?


Solution 1:

For this case, it is the intended way to use different instances of your material. three.js will ensure to reuse a single shader program even if opacity values vary.