Setting uniforms

when you set uniforms, you can choose a function ( 1f 2f 3f 4f etc ) and you can ADDITIONALLY specify a count in the 1fv 2fv… functions ( which is supposed to be used for arrays according to the doc ). Why isnt every uniform vector you specify treated as an array of 1f ( etc )? How does it make sense to have seperate functions that do nearly the same thing? I didnt actually test it but is it possible to specify a vector as an array of 1fs?
TIA :wink:

No, I believe the dimensions are orthogonal. One of them say whether you are writing to a float or a float4 or whatever. The other says how many such elements you are writing. In the hardware, a float[4] is very different from a float4[1].

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.