diff options
author | aap <aap@papnet.eu> | 2020-08-24 14:26:17 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2020-08-24 14:26:17 +0200 |
commit | 0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1 (patch) | |
tree | c9b37930b63eae0642cc532fb6a4b898aa7ea526 /src/render/Sprite.cpp | |
parent | CWeather done (diff) | |
download | re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar.gz re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar.bz2 re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar.lz re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar.xz re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.tar.zst re3-0a19925e99ac32366a9193dbad6ddc5d6e2a3bd1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/render/Sprite.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/render/Sprite.cpp b/src/render/Sprite.cpp index f26f8e63..401eebd0 100644 --- a/src/render/Sprite.cpp +++ b/src/render/Sprite.cpp @@ -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; |