#X3D V3.0 Group { children [ WorldInfo { info ["This shows IndexedFaceSets" "with RGBA color per vertex" "" "GPAC Regression Tests" "(C) 2002-2004 GPAC Team"] title "ColorRGBA X3D Test test" } Transform { translation -1.5 0 0 children [ Shape { geometry IndexedFaceSet { coordIndex [0 1 2 3 -1 1 7 4 2 -1 7 6 5 4 -1 0 3 5 6 -1 3 2 4 5 -1 6 7 1 0 -1] color DEF COL ColorRGBA { color [1 0 0 1, 0 1 0 0.2, 0 0 1 1, 1 1 0 0.5, 1 0 1 0.8, 0 1 1 0.2, 1 0.5 0.5 0.4, 0.5 0.5 1 0.7] } coord DEF COORD Coordinate { point [-1 -1 1 1 -1 1 1 1 1 -1 1 1 1 1 -1 -1 1 -1 -1 -1 -1 1 -1 -1] } } } ] } Transform { translation 1.5 0 0 children [ Shape { geometry IndexedFaceSet { colorIndex [0 1 2 3 4 5 6 7] colorPerVertex FALSE coordIndex [0 1 2 3 -1 1 7 4 2 -1 7 6 5 4 -1 0 3 5 6 -1 3 2 4 5 -1 6 7 1 0 -1] color USE COL coord USE COORD } } ] } ] }