How to get uniform variables with visual shaders?
Asked Answered
G

1

0

I wan to influence a visual shader from GDScript, I know I need to use unifom to get that connection. However, I cannot seem to find node for that in the visual shader. The only thing I could find was to create a global expression node and add a uniform variable in there. While it works it doesn't seem like the optimal solution, is there a better one?

Glandule answered 12/8, 2023 at 9:5 Comment(0)
L
0

Uniforms are called parameters in visual shaders. When creating a node, look under Scalar/Variables or Vector/Variables and pick one of *Parameter nodes.

Litigant answered 12/8, 2023 at 17:51 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.