- Home /
How to send an array of positions to a shader.
Recently I have been playing around with implementing area lights in unity based on this code here:https://dl.dropbox.com/u/11542084/AreaLights.txt I have it working for a single area light but to do more I would need to pass an array of positions,size,color etc to a shader. I know there is Shader.SetGlobaVector and was wondering if it is possible to send arrays with this/similar function?Thanks in advance
Comment