you can modify the onBeforeCompile to include
gl_FragColor.a = 1.0 - planeFog;
making sure transparent is set to true on the material
1 Like
you can modify the onBeforeCompile to include
gl_FragColor.a = 1.0 - planeFog;
making sure transparent is set to true on the material