godot
godot copied to clipboard
Allow usage of `discard` inside custom shader functions
Since https://github.com/godotengine/godot/pull/93358 got merged (which introduced call hierarchy checking), it's now easily possible to allow a user to use a discard keyword in custom user function in spatial/canvas_item shader types:
Is it possible to allow access to UV / SCREEN_UV and sdf functions as well? Just ran into this.
@djrain SDF functions (stage) are implemented in another PR : https://github.com/godotengine/godot/pull/93650, UV/SCREEN_UV still not.