![]() ![]() When you call draw() on an ofMesh the indexes control how the vertices get assembled into triangles later on. These attributes are used as the inputs into the vertex shader, this is what you're working within your vertex shader. Rendering an ofMesh start out as some vertex buffers on the CPU side that get filled with arrays of vertex attributes like colors or positions or texture coordinates.
0 Comments
Leave a Reply. |