Skip to content

Commit

Permalink
update debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinLeung-NiloCat committed Jul 19, 2020
1 parent 9754bb8 commit 46adffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ private void OnGUI()

//show slider to control SSPR ColorRT size
GUI.Label(new Rect(300, 25, 200, 200), $"SSPR_ColorRT height = {MobileSSPRRendererFeature.instance.Settings.RT_height}");
MobileSSPRRendererFeature.instance.Settings.RT_height = (int)(GUI.HorizontalSlider(new Rect(500, 25, 200, 200), MobileSSPRRendererFeature.instance.Settings.RT_height, 32,1080));
MobileSSPRRendererFeature.instance.Settings.RT_height = (int)(GUI.HorizontalSlider(new Rect(500, 25, 200, 200), MobileSSPRRendererFeature.instance.Settings.RT_height, 128,1024));

//view SSPR's result using different skyboxs
if (GUI.Button(new Rect(150, 200, 100, 100), "SwitchSkyBox"))
{
RenderSettings.skybox = skyboxs[(skyBoxIndex++)%skyboxs.Count];
}

GUI.Label(new Rect(150, 150, 100, 100), (int)(Time.smoothDeltaTime * 1000) + "ms", new GUIStyle() { fontSize = 30 } );
GUI.Label(new Rect(150, 150, 100, 100), $"{(int)(Time.smoothDeltaTime * 1000)} ms ({ Mathf.CeilToInt(1f/Time.smoothDeltaTime)}fps)", new GUIStyle() { fontSize = 30 } );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class PassSettings
public float fadeOutScreenBorderWidth = 0.5f;

[Header("Performance settings")]
[Range(64, 1024)]
[Range(128, 1024)]
[Tooltip("set to 512 is enough for sharp reflection")]
public int RT_height = 512;
[Range(0, 8)]
Expand Down

0 comments on commit 46adffe

Please sign in to comment.