Disturb mesh per vertex in shader

edited April 2014 in GLSL / Shaders

I want to pass an array with offsets for every vertex into a shader. At the moment its done by an grayscale texture holding the offset in the color value. I wonder if there is an easier way to do this.

Tagged:

Answers

  • Hi, if you are using the standard drawing functions (beginShape/endShape/etc), I would say that's the only way at this time to pass additional vertex attributes to the shaders, since there is currently no API that allows you to create custom attributes.

Sign In or Register to comment.