Skip to content

Commit

Permalink
feat(Sky): add distance to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
andretchen0 committed Sep 16, 2023
1 parent 4968785 commit 7440216
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion playground/src/pages/staging/SkyDemo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ const gl = {
toneMappingExposure: 1,
}
const [turbidity, rayleigh, mieCoefficient, mieDirectionalG, elevation, azimuth, exposure] = useControls({
const [turbidity, rayleigh, mieCoefficient, mieDirectionalG, elevation, azimuth, distance, exposure] = useControls({
turbidity: { value: 3.4, min: 0, max: 20, step: 0.1 },
rayleigh: { value: 3, min: 0, max: 4, step: 0.1 },
mieCoefficient: { value: 0.005, min: 0, max: 0.1, step: 0.001 },
mieDirectionalG: { value: 0.7, min: 0, max: 0.99, step: 0.01 },
elevation: { value: 2, min: 0, max: 90, step: 0.1 },
azimuth: { value: 180, min: 0, max: 360, step: 1 },
distance: { value: 450000, min: 1000, max: 1000000, step: 1000 },
exposure: { value: 0.5, min: 0, max: 1, step: 0.01 },
})
Expand All @@ -38,6 +39,7 @@ const [turbidity, rayleigh, mieCoefficient, mieDirectionalG, elevation, azimuth,
:mie-directional-g="mieDirectionalG.value.value"
:rayleigh="rayleigh.value.value"
:turbidity="turbidity.value.value"
:distance="distance.value.value"
/>
<OrbitControls :zoom-speed="0" />
</TresCanvas>
Expand Down

0 comments on commit 7440216

Please sign in to comment.