Skip to content

Commit

Permalink
A bugfix for the clipplane override not always being obeyed in RSS mode.
Browse files Browse the repository at this point in the history
Version 1.9 Unofficial Release 1.22
  • Loading branch information
R-T-B committed Mar 29, 2020
1 parent 1fd44a9 commit a267d6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Binary file modified scatterer/.vs/scatterer/v16/.suo
Binary file not shown.
11 changes: 9 additions & 2 deletions scatterer/Scatterer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public partial class Scatterer : MonoBehaviour

bool coreInitiated = false;
public bool isActive = false;
public string versionNumber = "0.055_UFCRTBDEV_UR1_21";
public string versionNumber = "0.055_UFCRTBDEV_UR1_22";

void Awake()
{
Expand Down Expand Up @@ -424,7 +424,14 @@ public bool CheckClipPlanes()
}
if (mainSettings.overrideNearClipPlane)
{
return true;
if ((!mainSettings.RSSMode) && (farClip > 820000f) && (farClip < 850000f))
{
return true;
}
else if ((mainSettings.RSSMode) && (farClip > 1700000f) && (farClip < 1800000f))
{
return true;
}
}
else if ((!mainSettings.RSSMode) && ((nearClip < 0.52f) && (farClip > 820000f) && (farClip < 850000f)))
{
Expand Down

0 comments on commit a267d6c

Please sign in to comment.