Is it possible to pass a data type as a uniform parameter to a shader that’s not a float4 or float4x4? In particular is it possible to pass a single float like this?
I also need to be able to pass this same float to both the vertex shader and the fragment shader. How can this be accomplished? The call “model.setShaderInput()” to which program applies?
You can just pass a float4 if you want to pass a float. I think I’ve checked in a fix recently that allows you to use float, float1, float2, float3 as well.