vec2 hint for godot shaders?
Asked Answered
A

1

0

I want to create a vec2 uniform shader but I cannot see how to set a default type. I know for floats there is hint_range and color gets source_color but what if I just want a vector2?

Arawn answered 17/10, 2023 at 7:51 Comment(0)
F
0

Arawn There is no range hint for vec2 uniforms, although you can set the default value:

uniform vec2 foo = vec2(0.0, 0.0);
Faubion answered 17/10, 2023 at 8:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.