Post #3537729
2026-07-01 17:32 UTC
Dammit, I can't quite sort out #Godot's shaders. I can get this to give me proper hint_depth_texture responses on opaque objects but not on transparent ones.
I want to know the depth of the pixel I'm currently drawing. I found a way on the other computer quite by accident, this approach I found today isn't quite as robust.
Replies (1)
-
@Craigp@mastodon.social 2026-07-01 17:58
What kind of secret magic did I stumble onto and just assume would be trivial to do again? I can't find a single way to get the depth of a transparent object in a #Godot shader now, and it's only been a week.