Hi All.I need to pass a uniform into GLSL shader program in Unity.I looked into available property types for shaders but they don’t include arrays.
So how can I write something like this:
uniform vec1 amplitudes[ 12 ];
So that it would be visible to the outside world and can pass this uniform into the shader in run time.?
Man ,read carefully the question.I work with Unity .Unity has no ability to pass arrays into GLSL shaders.I checked it by my own.glUniformMatrix4fv can contain only 16 numbers.This question can be closed.
Would you mind sharing your answer?
– numberkruncher