[SOLVED] Can I use a float value in the "Fragment Constants" field?

Hi guys! I am wondering, is it possible to use only a float value instead of using vec4 and cutting the “X” component in the shader

No, our current internal APIs are build around using vec4 as the data container for constants/uniforms, so there is currently no way to write generic data into uniforms. We’ll address this eventually in the next version of the graphics/render API, but for now you will need to use vec4s.

2 Likes