www.jpct.net
jPCT - a 3d engine for Java => Support => Topic started by: MichaelJPCT on January 03, 2016, 10:29:06 am
-
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?
-
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.