-
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a4475db
commit 110e4a8
Showing
3 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Sky | ||
|
||
![Sky](/cientos/sky.png) | ||
|
||
`<Sky />` is a wrapper for the [Three.js `Sky` add-on](https://threejs.org/examples/?q=sky#webgl_shaders_sky). | ||
|
||
## Usage | ||
|
||
```vue{2,8} | ||
<script setup lang="ts"> | ||
import { Sky } from '@tresjs/cientos' | ||
</script> | ||
<template> | ||
<TresCanvas> | ||
<TresPerspectiveCamera :position="[0, 100, 2000]" /> | ||
<Sky /> | ||
</TresCanvas> | ||
</template> | ||
``` | ||
|
||
## Props | ||
|
||
| Prop | Description | Default | | ||
| :------------------ | :---------------------------------------------------------------------------------------------------------------------------------- | ------- | | ||
| `elevation` | The sun's elevation from the horizon, in degrees | `0.6` | | ||
| `azimuth` | The sun's [azimuth angle](https://en.wikipedia.org/wiki/Solar_azimuth_angle), in degrees – its horizontal coordinate on the horizon | `180` | | ||
| `mie-coefficient` | [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) amount | `0.005` | | ||
| <nobr>`mie-directional-g`</nobr> | [Mie scattering](https://en.wikipedia.org/wiki/Mie_scattering) direction | `0.7` | | ||
| `rayleigh` | [Rayleigh scattering](https://en.wikipedia.org/wiki/Rayleigh_scattering) | `3` | | ||
| `turbidity` | Haziness | `3.4` | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.