Method GL.GLSLUtils.VertexBuffer()->add_alias()


Method add_alias

void add_alias(string name, string name2, int|void size)

Description

Add name as an alias for name2. As an example add_alias( "normal", "pos") will make the vertex attribute normal have the same value as pos without using additional storage.

The size can be smaller than the size for the original attribute, but never larger. If no size is given they will have the same size.