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?

  • xyz replied to this.

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

    uniform vec2 foo = vec2(0.0, 0.0);