diff --git a/docs/api/en/scenes/DensityFog.html b/docs/api/en/scenes/DensityFog.html new file mode 100644 index 00000000000000..1d5a5aa232fd11 --- /dev/null +++ b/docs/api/en/scenes/DensityFog.html @@ -0,0 +1,61 @@ + + +
+ +This class contains the parameters that define exponential or exponential squared fog, which gives a clear view near the camera and an exponentially or faster than exponentially densening fog farther from the camera.
+ +const scene = new THREE.Scene();
+ scene.fog = new THREE.DensityFog( 0xcccccc, 0.002, true );
+
+
+ The color parameter is passed to the [page:Color] constructor to set the color property. Color can be a hexadecimal integer or a CSS-style string.
++ Read-only flag to check if a given object is of type [name]. +
+ +Optional name of the object (doesn't need to be unique). Default is an empty string.
+ +Fog color. Example: If set to black, far away objects will be rendered black.
+ +Defines how fast the fog will grow dense.
+Default is 0.00025.
+ +Defines whether the product of density and distance is squared in the exponent.
+Default is true.
+ +Returns a new DensityFog instance with the same parameters as this one.
+ +Return DensityFog data in JSON format.
+ ++ [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] +
+ + diff --git a/docs/api/en/scenes/Fog.html b/docs/api/en/scenes/Fog.html index aca3beb61d5c68..1132cfb38a2583 100644 --- a/docs/api/en/scenes/Fog.html +++ b/docs/api/en/scenes/Fog.html @@ -9,53 +9,7 @@This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.
+This class is deprecated. Use RangeFog instead.
-const scene = new THREE.Scene();
- scene.fog = new THREE.Fog( 0xcccccc, 10, 15 );
-
-
- The color parameter is passed to the [page:Color] constructor to set the color property. Color can be a hexadecimal integer or a CSS-style string.
- -- Read-only flag to check if a given object is of type [name]. -
- -Optional name of the object (doesn't need to be unique). Default is an empty string.
- -Fog color. Example: If set to black, far away objects will be rendered black.
- -The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.
-Default is 1.
- -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.
-Default is 1000.
- -Returns a new fog instance with the same parameters as this one.
- -Return fog data in JSON format.
- -- [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] -