finished sprites

This commit is contained in:
aap 2020-08-24 14:26:17 +02:00
parent 38a01a59fa
commit 0a19925e99
2 changed files with 13 additions and 11 deletions

View file

@ -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;