Skip to content

Commit

Permalink
Fix grass disappear in some frames
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed Apr 7, 2019
1 parent 656549d commit a8abc58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cs/engine/layers/xrRender/DetailManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ void CDetailManager::UpdateVisibleM()
Fvector EYE = Device.vCameraPosition;

CFrustum View;
View.CreateFromMatrix (Device.mFullTransform, FRUSTUM_P_LRTB + FRUSTUM_P_FAR);
//View.CreateFromMatrix (Device.mFullTransform, FRUSTUM_P_LRTB + FRUSTUM_P_FAR);
/* KD: there is some bug: frustrum created from full transform matrix seems to be broken in some frames,
* so we should use saved frustrum from render interface */
View = RImplementation.ViewBase;

float fade_limit = dm_fade; fade_limit=fade_limit*fade_limit;
float fade_start = 1.f; fade_start=fade_start*fade_start;
Expand Down

0 comments on commit a8abc58

Please sign in to comment.