I’m seeing some undesirable lighting and blending behavior on my custom volume in 3D mode. I don’t know how to describe it other than each plane’s luminosity seems to change too drastically as I navigate around the scene. I’ve also noticed that my z-depth doesn’t seem to be correct when translucency is enabled. I captured both in this video: Lighting/Blending Video. In the first part of the video my PerInstanceColorAppearance has translucent : false, **faceForward **: *true *and everything else set to default. In the second part of the video I set translucent to true.
I’ve ensured my normals are all pointing away from the interior of the volume. If I set faceForward : false, I get this: No Face Forward Video
The outside of the volume looks correct when I enable translucency and back face culling (closed : true), but when I look into the volume from the end, everything disappears. I guess it considers every face a back face in that case, and since the volume isn’t truly closed on top, there’s nothing to show.
Are these expected behaviors? I’ve been banging my head against the wall with RenderState trying to improve this, but I’m not sure what all of the options are and how to use them.