Possible way to set non-vec4 in shader constants?

If I add a shader constant to a material it’s always a vec4

Is there a way to use vec3 or number for example or does it always have to be vec4s?

Currently only vec4 is supported. The workaround is to use the xyz components for vec3 and x for float, for instance.

Thank you for confirming. I use example options.xyzw for various things but then end up only using timer.x for timer values.

Yeah, so do I. :slight_smile:

2 Likes