Fixed terrain texture orientation so shadows fall as expected.

This was SVN commit r3394.
This commit is contained in:
Matei 2006-01-22 08:17:33 +00:00
parent 111b5cf42d
commit 84285b42d1

View File

@ -381,7 +381,7 @@ void CPatchRData::BuildVertices()
terrain->CalcPosition(ix,iz,vertices[v].m_Position);
*(uint32_t*)&vertices[v].m_Color = 0; // will be set to the proper value in Update()
vertices[v].m_UVs[0]=i*0.125f;
vertices[v].m_UVs[1]=j*0.125f;
vertices[v].m_UVs[1]=1 - j*0.125f;
// calculate lighting into the separate m_LightingColors array, which will
// be used to set the vertex colors in Update()