mirror of
https://github.com/aap/librw.git
synced 2025-12-20 17:39:49 +00:00
implemented fog for gl3
This commit is contained in:
@@ -230,7 +230,7 @@ beginUpdate(Camera *cam)
|
||||
|
||||
proj[12] = 0.0f;
|
||||
proj[13] = 0.0f;
|
||||
proj[14] = -this->nearPlane*this->projMat[10];
|
||||
proj[14] = -this->nearPlane*proj[10];
|
||||
proj[15] = 0.0f;
|
||||
}else{
|
||||
proj[8] = 0.0f;
|
||||
@@ -240,7 +240,7 @@ beginUpdate(Camera *cam)
|
||||
|
||||
proj[12] = this->viewOffset.x*invwx;
|
||||
proj[13] = this->viewOffset.y*invwy;
|
||||
proj[14] = -this->nearPlane*this->projMat[10];
|
||||
proj[14] = -this->nearPlane*proj[10];
|
||||
proj[15] = 1.0f;
|
||||
}
|
||||
device->SetTransform(D3DTS_PROJECTION, (D3DMATRIX*)proj);
|
||||
|
||||
Reference in New Issue
Block a user