-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
author Elias Hasle <elias.hasle@gmail.com> 1566822048 +0200 committer Elias Hasle <elias.hasle@gmail.com> 1569597690 +0200 RangeFog(color, near, far) and DensityFog(color, density, squared) Added fog types example. Currently includes some extra examples that show functionality of legacy signatures, and mediump and lowp operation for all fog types. Includes the change to distance-based depth, as well as corrections to better support mediump. Makes #17316 and #17324 obsolete. Force update when squared is changed. Fix legacy example and mediump example Attempted fixes for editor
- Loading branch information
1 parent
ab18028
commit 2f3b28f
Showing
34 changed files
with
1,405 additions
and
187 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
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,55 @@ | ||
<!DOCTYPE html> | ||
|
||
<!--NOT TRANSLATED TO CHINESE YET--> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<base href="../../../" /> | ||
<script src="list.js"></script> | ||
<script src="page.js"></script> | ||
<link type="text/css" rel="stylesheet" href="page.css" /> | ||
</head> | ||
<body> | ||
<h1>[name]</h1> | ||
|
||
<p class="desc">This class contains the parameters that define density-based fog.</p> | ||
|
||
|
||
<h2>Constructor</h2> | ||
|
||
|
||
<h3>[name]( [param:Integer color], [param:Float density], [param:Boolean squared] )</h3> | ||
|
||
<p>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.</p> | ||
<h2>Properties</h2> | ||
|
||
<h3>[property:String name]</h3> | ||
<p>Optional name of the object (doesn't need to be unique). Default is an empty string.</p> | ||
|
||
<h3>[property:Color color]</h3> | ||
<p>Fog color. Example: If set to black, far away objects will be rendered black.</p> | ||
|
||
<h3>[property:Float density]</h3> | ||
<p>Defines how fast the fog will grow dense.</p> | ||
<p>Default is 0.00025.</p> | ||
|
||
<h3>[property:Boolean squared]</h3> | ||
<p>If false, the mode will be exponential fog, which is analogous to physical fog. If true, the mode will be exponential squared fog, which gives a clear view near the camera and a faster than exponentially densening fog farther from the camera.</p> | ||
<p>Default is true, that is exponential squared fog.</p> | ||
|
||
<h2>Methods</h2> | ||
|
||
<h3>[method:DensityFog clone]()</h3> | ||
<p>Returns a new DensityFog instance with the same parameters as this one.</p> | ||
|
||
<h3>[method:DensityFog toJSON]()</h3> | ||
<p>Return DensityFog data in JSON format.</p> | ||
|
||
<h2>Source</h2> | ||
|
||
<p> | ||
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js] | ||
</p> | ||
</body> | ||
</html> |
This file was deleted.
Oops, something went wrong.
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
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
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
Oops, something went wrong.