Slide 22
Slide 22 text
glVertexAttribPointer
◼
Legacy pipeline
◼
Shading is performed “pre-defined” parameters, e.g., vertex
position, normal, colors with fixed types (typically 3 floats)
◼
So, a small set of glVertexPointer, glNormalPointer, and
glColorPointer is enough.
◼
Modern pipeline
◼
Shaders can flexibly perform shading with arbitrary parameters
with arbitrary types.
◼
Usage will be determined in shaders. So, only what we should
do in CPU side is how data is described.
→ glVertexAttribPointer allows general data specification!
Computer Graphics Course @Waseda University