#VRML V1.0 ascii # # PER_VERTICES_INDEXED # Defined six colors, so the index is running form 0 to 5. # WWWAnchor { name "http://www.npac.syr.edu/users/gcf/meryem/Tutorial/VRML/Pyramid/per_vertex_indexed.html" Material { diffuseColor [ 1.0 1.0 0.0, 0.0 1.0 1.0, 1.0 0.0 1.0, 1.0 0.0 0.0, 0.0 1.0 0.0, 0.0 0.0 1.0 ] ambientColor 0.1 0.1 0.1 } MaterialBinding { value PER_VERTEX_INDEXED } Coordinate3 { point [ 0 5 0, -2.5 0 -2.5, 2.5 0 -2.5, 2.5 0 2.5, -2.5 0 2.5 ] } IndexedFaceSet { coordIndex [ 0, 4, 3, -1, 0, 3, 2, -1, 0, 2, 1, -1, 0, 1, 4, -1, 1, 3, 4, -1, 1, 2, 3, -1 ] materialIndex [ 0, 4, 3, -1, 0, 3, 2, -1, 0, 2, 1, -1, 0, 1, 4, -1, 1, 3, 4, -1, 1, 2, 3, -1 ] } }