godot icon indicating copy to clipboard operation
godot copied to clipboard

Allow usage of `discard` inside custom shader functions

Open Chaosus opened this issue 1 year ago • 2 comments

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:

custom_func_discard

Chaosus avatar Jun 25 '24 12:06 Chaosus

Is it possible to allow access to UV / SCREEN_UV and sdf functions as well? Just ran into this.

djrain avatar Jul 14 '24 23:07 djrain

@djrain SDF functions (stage) are implemented in another PR : https://github.com/godotengine/godot/pull/93650, UV/SCREEN_UV still not.

Chaosus avatar Jul 15 '24 06:07 Chaosus