Skip to content

Commit

Permalink
chore: def opacity values
Browse files Browse the repository at this point in the history
  • Loading branch information
sinanatra committed Feb 3, 2025
1 parent e475e73 commit 381bd11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
screen="true"
layers="Buildings Ground"
focus
opacity=".6"
></vantage-projection>

<vantage-projection
Expand All @@ -49,6 +48,7 @@
screen="true"
pass-through=""
fov="53"
opacity=".8"
></vantage-projection>

<vantage-projection
Expand Down Expand Up @@ -125,7 +125,7 @@ <h4>Project on:</h4>
</div>
<div>
<label
>Projection opacity: <input id="opacity" type="number" min="0" max="1" step="0.1"
>Opacity: <input id="opacity" type="number" min="0" max="1" step="0.1"
/></label>
</div>
<button onclick="toggleFirstPerson()">Toggle First Person</button>
Expand Down Expand Up @@ -167,7 +167,7 @@ <h4>Project on:</h4>

document.getElementById('fov').value = projection.getAttribute('fov') || ''
document.getElementById('far').value = projection.getAttribute('far') || ''
document.getElementById('opacity').value = projection.getAttribute('opacity') || ''
document.getElementById('opacity').value = projection.getAttribute('opacity') || '1'

const layers = projection.getAttribute('layers') || ''
document.getElementById('layerBuildings').checked = layers.includes('Buildings')
Expand Down

0 comments on commit 381bd11

Please sign in to comment.