mirror of
https://github.com/GTAmodding/re3.git
synced 2025-07-06 13:34:08 +00:00
finished sprites
This commit is contained in:
parent
38a01a59fa
commit
0a19925e99
2 changed files with 13 additions and 11 deletions
|
@ -148,10 +148,10 @@ CSprite::RenderOneXLUSprite_Rotate_Aspect(float x, float y, float z, float w, fl
|
|||
|
||||
// Fade out when too near
|
||||
// why not in buffered version?
|
||||
if(z < 3.0f){
|
||||
if(z < 1.5f)
|
||||
if(z < 2.3f){
|
||||
if(z < 1.3f)
|
||||
return;
|
||||
int f = (z - 1.5f)/1.5f * 255;
|
||||
int f = (z - 1.3f)/(2.3f-1.3f) * 255;
|
||||
r = f*r >> 8;
|
||||
g = f*g >> 8;
|
||||
b = f*b >> 8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue