godot-volumetric-clouds icon indicating copy to clipboard operation
godot-volumetric-clouds copied to clipboard

Incorrect depth sorting with transparent assets

Open kb173 opened this issue 4 years ago • 3 comments

Objects with materials which have the "transparent" flag enabled are inconsistently either in front of or behind the clouds. It seems like they are not in the normal DEPTH_TEXTURE which is used for occlusion.

kb173 avatar Feb 12 '20 11:02 kb173

Likely related to and possibly fixable by workaround discussed in https://github.com/godotengine/godot/issues/28628#issuecomment-489293649

This would, however, add a lot of complexity to the plugin. I'd prefer a simpler alternative.

kb173 avatar Feb 12 '20 11:02 kb173

This can be worked around by decreasing the render priority of the clouds. However, this makes them slightly less flexible...

kb173 avatar Feb 12 '20 11:02 kb173

The mentioned hotfix was added in 97cccd5. I'd still want to find a cleaner solution though.

kb173 avatar Feb 12 '20 15:02 kb173