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?
vec2 hint for godot shaders?
Asked Answered
Arawn There is no range hint for vec2 uniforms, although you can set the default value:
uniform vec2 foo = vec2(0.0, 0.0);
© 2022 - 2024 — McMap. All rights reserved.