diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-25 19:35:03 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-25 19:35:03 +0200 |
commit | 9647901ba07e6252ce850b72108958324d3b3230 (patch) | |
tree | 0a17b9decd677ecbf3a288705df0ed2eeaef87e4 /src/rw | |
parent | c21e5f5e793c353e06043a0bc272699de1abfb29 (diff) | |
parent | c5ff13abca67a375056ddbef34f129de1b2ce437 (diff) |
Merge branch 'miami' into lcs
# Conflicts:
# src/control/Script.h
# src/modelinfo/SimpleModelInfo.cpp
# src/modelinfo/VehicleModelInfo.cpp
# src/rw/VisibilityPlugins.cpp
# src/rw/VisibilityPlugins.h
Diffstat (limited to 'src/rw')
-rw-r--r-- | src/rw/VisibilityPlugins.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/rw/VisibilityPlugins.cpp b/src/rw/VisibilityPlugins.cpp index 754c8778..ae6eda47 100644 --- a/src/rw/VisibilityPlugins.cpp +++ b/src/rw/VisibilityPlugins.cpp @@ -463,7 +463,6 @@ CVisibilityPlugins::RenderVehicleHiDetailCB_Boat(RpAtomic *atomic) RpAtomic* CVisibilityPlugins::RenderVehicleHiDetailCB_Boat_Far(RpAtomic *atomic) { - if(DistToCameraSq < ms_bigVehicleLod1Dist) RENDERCALLBACK(atomic); return atomic; } @@ -499,6 +498,23 @@ CVisibilityPlugins::RenderVehicleLoDetailCB_Boat(RpAtomic *atomic) } RpAtomic* +CVisibilityPlugins::RenderVehicleLoDetailCB_Boat(RpAtomic *atomic) +{ + RpClump *clump; + int32 alpha; + + clump = RpAtomicGetClump(atomic); + if(DistToCameraSq >= ms_vehicleLod0Dist){ + alpha = GetClumpAlpha(clump); + if(alpha == 255) + RENDERCALLBACK(atomic); + else + RenderAlphaAtomic(atomic, alpha); + } + return atomic; +} + +RpAtomic* CVisibilityPlugins::RenderVehicleLoDetailCB_Boat_Far(RpAtomic *atomic) { RpClump *clump; |