why did you use a flipmesh on the ground? chaning 2nd and 3rd vertex in the addtriangle command has the same effect and saves time :)
You say the first code worked but not the 2nd, right?
Is there any Lightsource in the whole source with part 2?
Do you modify the vertexcolors outside this function? ( you used VertexColor FX so I think you are doing something with it ) because the shading is done over vertex colors so if you modify the vertex color the shading is gone.
You say the first code worked but not the 2nd, right?
Is there any Lightsource in the whole source with part 2?
Do you modify the vertexcolors outside this function? ( you used VertexColor FX so I think you are doing something with it ) because the shading is done over vertex colors so if you modify the vertex color the shading is gone.