Replies: 3 comments 6 replies
-
Converted to a discussion as there were no concrete steps for implementing or achieving this |
Beta Was this translation helpful? Give feedback.
0 replies
-
cc @Chaosus This might be possible if the code that forbids calling SDF functions outside |
Beta Was this translation helpful? Give feedback.
2 replies
-
I've created a PR to fix this: godotengine/godot#93650 |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the project you are working on
Any game
Describe the problem or limitation you are having in your project
it's not possible to use sdf functions outside of light and fragment parts, this forces user not to use helper functions and write most of their code inside fragment or light or pass such values as parameters. All of this result in "dirty" code that is not well readable.
Describe the feature / enhancement and how it helps to overcome the problem or limitation
allow usage of sdf_functions outside of fragment and light.
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
--
If this enhancement will not be used often, can it be worked around with a few lines of script?
--
Is there a reason why this should be core and not an add-on in the asset library?
--
Beta Was this translation helpful? Give feedback.
All reactions