Sharing functions accross shaders
Asked Answered
U

1

0

Is there a way to share functions or even constants like PI in way that avoid me of writing it up in every shader I make ?

Unquestionable answered 9/11, 2022 at 20:32 Comment(0)
U
0

I asked essentially the same question some time ago and got no response. I don't think this is possible in Godot 3, but the #include statement in Godot 4 may do the trick:

https://github.com/godotengine/godot-proposals/issues/944

Undaunted answered 10/11, 2022 at 2:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.