Verlets + vertex_attr_matrix

casey's icon

Trying to decipher the Verlets patch, Just can't find an example of how to change an jit.gl.mesh attribute on a per vertex basis (I guess the vertex_attr_matrix should be used?).

For example having a jit.noise matrix control the size of the points on a per point basis.

Thanks,
Casey Farina

vade's icon

check the rutt etra thread. my patch has a vertex attribute shader that does something similar... youd have to have a shader that edits the gl_pointsize parameter, (I think thats it - something similar). Im fairly certain thats what you'd have to do.