There is a rendering bug where objects using FileMesh or SpecialMesh render in front of the SunRaysEffect glare, creating an unnatural dark silhouette overlay instead of being covered by the sun glare. Standard MeshParts or base Parts render properly, but FileMesh instances cause z-sorting/depth rendering artifacts with SunRays.
Steps to Reproduce:
- Enable Lighting.SunRaysEffect in a scene.
- Place a Part containing a SpecialMesh/FileMesh between the camera and the sun source.
- Observe that the mesh object incorrectly renders over the sun rays effect.
Expected behavior
The SunRaysEffect glare should blend naturally over the scene objects or be properly occluded by geometry, rather than rendering behind FileMesh depth layers.
Here is a short video demonstrating the issue in action.
As seen in the clip, when moving the camera behind the FileMesh/SpecialMesh objects, the SunRaysEffect light flare incorrectly renders behind the mesh geometry, creating a harsh silhouette clipping effect. Standard MeshParts do not exhibit this behavior under the exact same lighting conditions.
Watch 2026-07-23 20-00-10 | Streamable (video)
I have attached a reproduction model (.rbxm) of the tree asset containing the FileMesh/SpecialMesh setup.
You can insert this model into any empty place with SunRaysEffect enabled to observe and reproduce the depth rendering issue directly.
exampletree.rbxm (4.8 KB)
