Passing custom vertex attributes to shaders.

edited June 2016 in GLSL / Shaders

Hello, is there any chance that I can pass vertex attributes to the shaders from the application? It would be a nice feature if it has not been implemented yet. Thanks.

Tagged:

Answers

  • edited June 2016

    Reading the documentation I found it:

    attrib(String name, boolean... values) 
    attrib(String name, float... values) 
    attrib(String name, int... values)
    
  • There is a built-in example that shows how to use the attribX() functions, it is Demos|Graphics|MeshTweening

Sign In or Register to comment.