Skip to content

Commit

Permalink
Disable debugging feature
Browse files Browse the repository at this point in the history
  • Loading branch information
ruccho committed Nov 20, 2021
1 parent f7a92ee commit 5dc721a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Assets/Ruccho/Water-RW/Scripts/WaterRWCompute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ public class WaterRWCompute : MonoBehaviour
/// Max width of wave area to be calculated (in world space).
/// </summary>
[SerializeField, Min(1f)] private int maxWaveWidth = 256;

[SerializeField, Header("Debug")] private bool viewWaveBuffer = false;

#endregion

Expand Down Expand Up @@ -423,6 +425,7 @@ private void OnDrawGizmos()

private void OnGUI()
{
if (!viewWaveBuffer) return;
if (!waveBufferFixed) return;
GUI.DrawTexture(new Rect(0, 0, 1024, 20), waveBufferFixed, ScaleMode.StretchToFill, false);
}
Expand Down

0 comments on commit 5dc721a

Please sign in to comment.