mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-22 04:44:17 +00:00
ref_soft: fixed R_WorldToScreen behavior to match GoldSrc
This commit is contained in:
parent
74086cc4c1
commit
5402e1a259
@ -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
|
||||
|
@ -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 );
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user