How To Customize Alpha Transparency in Augmented Fragment Shader of Three.js Material?
I’m extending the THREE.MeshStandardMaterial
with onBeforeCompile
to adjust some details of the shader. I got the vertex shader working fine, but I’m having trouble figuring out how to set the alpha/transparency on the fragment shader.