vertexMap colormap,3; vertex3d colormap,0,(1,1,1); vertex3d colormap,1,(1,1,0); vertex3d colormap,2,(1,0,1); vertex3d colormap,3,(1,0,0); vertex3d colormap,4,(0,1,1); vertex3d colormap,5,(0,1,0); vertex3d colormap,6,(0,0,1); vertex3d colormap,7,(0,0,0); mesh mymesh; vertexMap meshvmap,3; vertex3d meshvmap,0,(-1,-1,-1); vertex3d meshvmap,1,(-1,-1,1); vertex3d meshvmap,2,(-1,1,-1); vertex3d meshvmap,3,(-1,1,1); vertex3d meshvmap,4,(1,-1,-1); vertex3d meshvmap,5,(1,-1,1); vertex3d meshvmap,6,(1,1,-1); vertex3d meshvmap,7,(1,1,1); meshOp mymesh,points,meshvmap; meshAddPoly mymesh,0,{0,2,6,4}; meshAddPoly mymesh,0,{5,7,3,1}; meshAddPoly mymesh,0,{1,3,2,0}; meshAddPoly mymesh,0,{4,6,7,5}; meshAddPoly mymesh,0,{0,4,5,1}; meshAddPoly mymesh,0,{3,7,6,2}; meshop mymesh,pointmeta,'colormap',colormap; material mat; meshOp mymesh,tag,0,material,mat; metaTexture mtxt; metatextureset mtxt,colorVmap,'colormap'; materialSet mat,texture,color,mtxt; group add; group attachSet mesh,mymesh,(0,0,3)@<15,53,43>*2,0; group add; lightadd point,(-1,-1,-1.5),(1,1,1); lightadd ambient (0.3,0.3,0.3); //texture txt,color,(1,1,1)*10; //light sphere,(-1,-1,-2),1,txt,0.1,100,1000; background sky; camera perspective,(640,480),500,(0,0,-5); //imageSampler totalUniform,3; pixelFilter mitchell; splitScreen none; pixelOrder worm; render; interactive;