ref_soft: fixed R_WorldToScreen behavior to match GoldSrc

This commit is contained in:
SNMetamorph 2022-04-12 13:07:29 +04:00 committed by a1batross
parent 74086cc4c1
commit 5402e1a259
2 changed files with 1 additions and 13 deletions

View File

@ -253,8 +253,6 @@ int R_WorldToScreen( const vec3_t point, vec3_t screen )
if( w < 0.001f )
{
screen[0] *= 100000;
screen[1] *= 100000;
behind = true;
}
else

View File

@ -356,17 +356,7 @@ convert world coordinates (x,y,z) into screen (x, y)
*/
int GAME_EXPORT TriWorldToScreen( const float *world, float *screen )
{
int retval;
retval = R_WorldToScreen( world, screen );
screen[0] = 0.5f * screen[0] * (float)RI.viewport[2];
screen[1] = -0.5f * screen[1] * (float)RI.viewport[3];
screen[0] += 0.5f * (float)RI.viewport[2];
screen[1] += 0.5f * (float)RI.viewport[3];
return retval;
return R_WorldToScreen( world, screen );
}
/*