From a74bfce923b96a6d7879aabdf58a195e23c9f92e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 3 Dec 2009 01:38:42 +0100 Subject: [PATCH] - Re-enabled lighting normals --- Client/UfrmMain.pas | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Client/UfrmMain.pas b/Client/UfrmMain.pas index 905c321..d4c2f0a 100644 --- a/Client/UfrmMain.pas +++ b/Client/UfrmMain.pas @@ -1781,9 +1781,9 @@ begin if ABlockInfo^.HighRes <> nil then begin - {if ABlockInfo^.Normals = nil then + if ABlockInfo^.Normals = nil then New(ABlockInfo^.Normals); - FLandscape.GetNormals(item.X, item.Y, ABlockInfo^.Normals^);} //Unused so far + FLandscape.GetNormals(item.X, item.Y, ABlockInfo^.Normals^); //Unused so far ABlockInfo^.DrawQuad[0][0] := drawX; ABlockInfo^.DrawQuad[0][1] := drawY - z * 4; ABlockInfo^.DrawQuad[1][0] := drawX + 22; @@ -1898,13 +1898,13 @@ begin glEnable(GL_LIGHTING); glBegin(GL_QUADS); - //glNormal3fv(@blockInfo^.Normals^[0]); + glNormal3fv(@blockInfo^.Normals^[0]); glTexCoord2f(0, 0); glVertex2fv(@blockInfo^.DrawQuad[0]); - //glNormal3fv(@blockInfo^.Normals^[3]); + glNormal3fv(@blockInfo^.Normals^[3]); glTexCoord2f(0, 1); glVertex2fv(@blockInfo^.DrawQuad[3]); - //glNormal3fv(@blockInfo^.Normals^[2]); + glNormal3fv(@blockInfo^.Normals^[2]); glTexCoord2f(1, 1); glVertex2fv(@blockInfo^.DrawQuad[2]); - //glNormal3fv(@blockInfo^.Normals^[1]); + glNormal3fv(@blockInfo^.Normals^[1]); glTexCoord2f(1, 0); glVertex2fv(@blockInfo^.DrawQuad[1]); glEnd;