How can I make transparent materials?

I’m creating a glass material, and I want it to be transparent without affecting its texture.

You can see that the glass block here isn’t transparent. How can I do this?

I’ve tried to use .alpha, but it has affected the texture.

NOTE: I’m using Minecraft textures just so I can test this, so don’t warn me about not using Minecraft textures.

Have you tried setting glassBox.opacityTexture=texture
texture being the same as the diffuseTexture.
You might want to set material.useAlphaFromDiffuseTexture=true as well

1 Like

Thank you so much!