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