From 84285b42d1a871b1b8d928daa427e5ba9f34b0e9 Mon Sep 17 00:00:00 2001 From: Matei Date: Sun, 22 Jan 2006 08:17:33 +0000 Subject: [PATCH] Fixed terrain texture orientation so shadows fall as expected. This was SVN commit r3394. --- source/renderer/PatchRData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/renderer/PatchRData.cpp b/source/renderer/PatchRData.cpp index e36231b1e2..db5ee82097 100755 --- a/source/renderer/PatchRData.cpp +++ b/source/renderer/PatchRData.cpp @@ -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()