SHADERed
SHADERed copied to clipboard
Not Able to Provide Input for Uniform Arrays?
As far as I can tell, values of uniforms are provided via the variables input. However, if I have a uniform which as follows:
uniform vec3 lightPositions[4];
I am not able to provide the data to that array of vec3's as far as I can tell. Would be nice if there were a way to specify the variable type as an array and then further specify the type which is contained in the array, and fill the array accordingly.
Unfortunately, it isn't possible to create an uniform array variable in SHADERed currently. Though, that is a great suggestion. Might even try to add this feature in the next release of SHADERed. The only problem is that I am not quite sure how to incorporate/design UI for this feature.