Forums > Jitter

Sending custom vertex attributes for shaders

March 7, 2013 | 11:26 pm

Is there any way to send custom vertex attributes for shaders? It seems that jit.gl.render can send the basic vertex attributes only, and jit.gl.sketch does not have any function that can do it. Any idea?


March 7, 2013 | 11:52 pm

searching the forum for "vertex attributes" or something similar, should reveal some hits.

attached is something made by a user many years ago, that demonstrates the technique.

basically, you need to use jit.gl.mesh to draw, and send it the message "vertex_attr_matrix" followed by the name of the matrix you want to pass to the shader.

Attachments:
  1. p.morph.zip

Viewing 2 posts - 1 through 2 (of 2 total)