- Re-enabled lighting normals
This commit is contained in:
parent
fffb420299
commit
a74bfce923
|
@ -1781,9 +1781,9 @@ begin
|
||||||
|
|
||||||
if ABlockInfo^.HighRes <> nil then
|
if ABlockInfo^.HighRes <> nil then
|
||||||
begin
|
begin
|
||||||
{if ABlockInfo^.Normals = nil then
|
if ABlockInfo^.Normals = nil then
|
||||||
New(ABlockInfo^.Normals);
|
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][0] := drawX;
|
||||||
ABlockInfo^.DrawQuad[0][1] := drawY - z * 4;
|
ABlockInfo^.DrawQuad[0][1] := drawY - z * 4;
|
||||||
ABlockInfo^.DrawQuad[1][0] := drawX + 22;
|
ABlockInfo^.DrawQuad[1][0] := drawX + 22;
|
||||||
|
@ -1898,13 +1898,13 @@ begin
|
||||||
glEnable(GL_LIGHTING);
|
glEnable(GL_LIGHTING);
|
||||||
|
|
||||||
glBegin(GL_QUADS);
|
glBegin(GL_QUADS);
|
||||||
//glNormal3fv(@blockInfo^.Normals^[0]);
|
glNormal3fv(@blockInfo^.Normals^[0]);
|
||||||
glTexCoord2f(0, 0); glVertex2fv(@blockInfo^.DrawQuad[0]);
|
glTexCoord2f(0, 0); glVertex2fv(@blockInfo^.DrawQuad[0]);
|
||||||
//glNormal3fv(@blockInfo^.Normals^[3]);
|
glNormal3fv(@blockInfo^.Normals^[3]);
|
||||||
glTexCoord2f(0, 1); glVertex2fv(@blockInfo^.DrawQuad[3]);
|
glTexCoord2f(0, 1); glVertex2fv(@blockInfo^.DrawQuad[3]);
|
||||||
//glNormal3fv(@blockInfo^.Normals^[2]);
|
glNormal3fv(@blockInfo^.Normals^[2]);
|
||||||
glTexCoord2f(1, 1); glVertex2fv(@blockInfo^.DrawQuad[2]);
|
glTexCoord2f(1, 1); glVertex2fv(@blockInfo^.DrawQuad[2]);
|
||||||
//glNormal3fv(@blockInfo^.Normals^[1]);
|
glNormal3fv(@blockInfo^.Normals^[1]);
|
||||||
glTexCoord2f(1, 0); glVertex2fv(@blockInfo^.DrawQuad[1]);
|
glTexCoord2f(1, 0); glVertex2fv(@blockInfo^.DrawQuad[1]);
|
||||||
glEnd;
|
glEnd;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue