[Scummvm-cvs-logs] SF.net SVN: scummvm: [32915] residual/trunk/engine/backend/sdl/ driver_tinygl.cpp
aquadran at users.sourceforge.net
aquadran at users.sourceforge.net
Sat Jul 5 12:30:25 CEST 2008
Revision: 32915
http://scummvm.svn.sourceforge.net/scummvm/?rev=32915&view=rev
Author: aquadran
Date: 2008-07-05 03:30:24 -0700 (Sat, 05 Jul 2008)
Log Message:
-----------
a bit fixed shadows
Modified Paths:
--------------
residual/trunk/engine/backend/sdl/driver_tinygl.cpp
Modified: residual/trunk/engine/backend/sdl/driver_tinygl.cpp
===================================================================
--- residual/trunk/engine/backend/sdl/driver_tinygl.cpp 2008-07-05 08:54:51 UTC (rev 32914)
+++ residual/trunk/engine/backend/sdl/driver_tinygl.cpp 2008-07-05 10:30:24 UTC (rev 32915)
@@ -192,9 +192,10 @@
float mat[16];
float nx, ny, nz, lx, ly, lz, px, py, pz;
- nx = normal->x();
- ny = normal->y();
- nz = -normal->z(); // for some unknown for me reason it need negate
+ // for some unknown for me reason normal need negation
+ nx = -normal->x();
+ ny = -normal->y();
+ nz = -normal->z();
lx = light->x();
ly = light->y();
lz = light->z();
@@ -238,7 +239,7 @@
tglSetShadowMaskBuf(_currentShadowArray->shadowMask);
SectorListType::iterator i = _currentShadowArray->planeList.begin();
Sector *shadowSector = *i;
- tglShadowProjection(&_currentShadowArray->pos, &shadowSector->getVertices()[1], &shadowSector->getNormal());
+ tglShadowProjection(&_currentShadowArray->pos, &shadowSector->getVertices()[0], &shadowSector->getNormal());
}
tglTranslatef(pos.x(), pos.y(), pos.z());
tglRotatef(yaw, 0, 0, 1);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list