- Home /
Passing an array to the Vertex shader
Hi, I've been searching the forums but have not found a concise and clear answer yet, but is there a way to pass an array to the vertex shader? I would like to write a custom shader that manipulates the vertices according to an array of vectors - so each vertex is modified differently form each other. From what I gather a sampler2D could be used with a width of 1 - but I'm not sure how to go about creating this via script.
Any help would be much appreciated!
Your answer
Follow this Question
Related Questions
Surface Shader vertex displacement, shadows not moving 1 Answer
How to convert surface shader to Vertex/Fragment code? 0 Answers
Change custom shader color where vertex is displaced 0 Answers
Access GameObject position and model position in surface shader? 0 Answers
Surface shader + Instancing -> Invalid subscript 'texcoord' in generated code 1 Answer