Fix physics depending on fps

This commit is contained in:
Paul Mathieu
2021-12-30 03:47:57 -08:00
parent e8e4ccb9ad
commit 0b45bfe1eb
4 changed files with 53 additions and 26 deletions

View File

@@ -40,7 +40,8 @@
<button class="collapsible">Parameters</button>
<div class="paramContent">
<div class="paramPanel">
<h3>Light direction</h3>
<h3>Light</h3>
<h4>Direction</h4>
<p>
x:
<input type="range" min="-100" max="100" value="50" class="slider" id="lightx" />
@@ -56,12 +57,25 @@
<p>
<div id="lightDirVec"></div>
</p>
</div>
<div class="paramPanel">
<h3>Ambiant light</h3>
<h4>Ambiant light amount</h4>
<p>
<input type="range" min="0" max="100" value="50" class="slider" id="ambiant" />
</p>
<h4>Sky color</h4>
<p>
r:
<input type="range" min="0" max="255" value="115" class="slider" id="skyr" />
</p>
<p>
g:
<input type="range" min="0" max="255" value="191" class="slider" id="skyg" />
</p>
<p>
b:
<input type="range" min="0" max="255" value="255" class="slider" id="skyb" />
</p>
<p>
<div id="skyColor"></div>
</div>
<div class="paramPanel">
<h3>Physics</h3>