1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

LLE triangle: set vertex depth to 0 when triangle command does not use depth.

Fixed depth compare issue with snow in Polaris SnoCross
This commit is contained in:
Sergey Lipskiy 2020-02-13 18:08:03 +07:00
parent 0bc6cf7a11
commit 1d5fdf123e

View File

@ -1438,7 +1438,7 @@ void LLETriangle::draw(bool _shade, bool _texture, bool _zbuffer, s32 * _pData)
//if (vtx->z < 0.0f)
// vtx->z = 1.0f + vtx->z - ceil(vtx->z);
} else
vtx->z = 1.0f;
vtx->z = 0.0f;
if (_texture) {
if (gDP.otherMode.texturePersp != 0) {