- Re-enabled lighting normals

This commit is contained in:
Andreas Schneider 2009-12-03 01:38:42 +01:00
parent fffb420299
commit a74bfce923
1 changed files with 6 additions and 6 deletions

View File

@ -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;