naming the vertex attributes

Started by MichaelJPCT, January 03, 2016, 10:29:06 AM

Previous topic - Next topic

MichaelJPCT

say i created a plane with ExtendedPrimitives.createPlane,
in the object3d there is a mesh, and the mesh has vertex positions, uv coords, etc.
they are like vertex attributes, but they are not in VertexAttribute objects.

if i want to use shader with this plane and i need to access vertex position, normal, uv coords... how can i access them?

EgonOlsen

Desktop GL provides some magic attributes for that, like gl_position and such. In the wiki, you can find some shader examples for desktop OpenGL that should illustrate that.