Would some kind person, please look through the below code and tell me what I'm doing wrong ?. Just trying out the vertexcolor command on a textured surface, but it doesnt seem to do anything.
Graphics3D 800,600 SetBuffer BackBuffer() camera=CreateCamera() CameraViewport camera,0,0,800,600 light=CreateLight() Tex=LoadTexture("facetexture.bmp") brush=CreateBrush() BrushTexture brush,tex mesh=CreateMesh() surf=CreateSurface( mesh) AddVertex surf,-1,1,0, 0,0 AddVertex surf,1,1,0, 1,0 AddVertex surf,1,-1,0, 1,1 AddVertex surf,-1,-1,0, 0,1 AddTriangle surf,0,1,2 AddTriangle surf,0,2,3 UpdateNormals mesh PaintMesh mesh,brush PositionEntity mesh,0,0,4 ;EntityFX mesh,32 - not needed yet ! surface=GetSurface(mesh,CountSurfaces(mesh)) VertexColor surface,1,255,0,0 While Not KeyHit(1) TurnEntity mesh,0,0,.3 UpdateWorld RenderWorld Flip Wend End