SHADERed icon indicating copy to clipboard operation
SHADERed copied to clipboard

Not Able to Provide Input for Uniform Arrays?

Open heindelj opened this issue 4 years ago • 1 comments

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.

heindelj avatar Jul 20 '20 02:07 heindelj

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.

dfranx avatar Jul 22 '20 18:07 dfranx