You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a ground plane that I want to fade away in the distance. I have the material set to use Distance Fade to achieve this effect, however it causes the ground plane to render over top of the editor icons/gizmos/grid. This behavior occurs when Min Distance > Max Distance and also when Max Distance > Min Distance.
Mode = PixelAlpha (particles icon & raycast gizmo not drawing over plane as expected)
Mode = PixelDither (expected behavior where icons/gizmos draw over top of plane with Distance Fade material)
Steps to reproduce
Create new 3D scene
Add a MeshInstance3D, set mesh to new PlaneMesh
Add a CPUParticles3D (or any other Node which will have a gizmo/icon shown in the editor... a raycast 3d also works)
Move the CPUParticles3D upward (e.g. y=0.2)
Select the MeshInstance3D > Surface Material Override > New StandardMaterial3D
Change albedo to some dark color to make it easier to see what's happening
Set Distance Fade to PixelAlpha, Min Distance to 4, Max Distance to 3
Zoom the camera in and out to see how the plane is rendering over top of the CPUParticles3D icon even though the CPUParticles3D is higher up. Now change the Distance Fade mode to PixelDither and observe the intended rendering order.
Godot version
Godot Engine v4.1.1.stable.mono.official.bd6af8e0e
System information
Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.2824) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
I have a ground plane that I want to fade away in the distance. I have the material set to use Distance Fade to achieve this effect, however it causes the ground plane to render over top of the editor icons/gizmos/grid. This behavior occurs when Min Distance > Max Distance and also when Max Distance > Min Distance.
Mode = PixelAlpha (particles icon & raycast gizmo not drawing over plane as expected)
Mode = PixelDither (expected behavior where icons/gizmos draw over top of plane with Distance Fade material)
Steps to reproduce
Zoom the camera in and out to see how the plane is rendering over top of the CPUParticles3D icon even though the CPUParticles3D is higher up. Now change the Distance Fade mode to PixelDither and observe the intended rendering order.
Minimal reproduction project
DistanceFadeBugMinRepo.zip
The text was updated successfully, but these errors were encountered: