-
Notifications
You must be signed in to change notification settings - Fork 1
Fog
Josh Stovall edited this page Dec 3, 2020
·
1 revision
Add fog to the reality. (grows linearly denser with the distance)
new XR.Fog({
color:0xFFFFFF,
near: 1,
far: 1000
});
See the live demo.
Name | Type | Default | Description |
---|---|---|---|
color |
color |
fog color | |
near |
float |
min distace of fog | |
far |
float |
max distance of fog |
Fog color.
The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.
The maximum distance at which fog stops being calculated and applied. Objects that are more than 'far' units away from the active camera won't be affected by fog.