source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/docs/api/scenes/Fog.html@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 1.5 KB
Line 
1<!DOCTYPE html>
2<html lang="en">
3 <head>
4 <meta charset="utf-8" />
5 <script src="../../list.js"></script>
6 <script src="../../page.js"></script>
7 <link type="text/css" rel="stylesheet" href="../../page.css" />
8 </head>
9 <body>
10 <h1>[name]</h1>
11
12 <div class="desc">This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.</div>
13
14
15 <h2>Constructor</h2>
16
17
18 <h3>[name]( [page:Integer hex], [page:Float near], [page:Float far] )</h3>
19 <div>The hex parameter is passed to the [page:Color] constructor to set the color property. Hex can be a hexadecimal integer or a CSS-style string.</div>
20
21 <h2>Properties</h2>
22
23 <h3>.[page:String name]</h3>
24 <div>Default is the empty string.</div>
25
26 <h3>.[page:Color color]</h3>
27 <div>Fog color. Example: If set to black, far away objects will be rendered black.</div>
28
29 <h3>.[page:Float near]</h3>
30 <div>The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.</div>
31 <div>Default is 1.</div>
32
33 <h3>.[page:Float far]</h3>
34 <div>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.</div>
35 <div>Default is 1000.</div>
36
37 <h2>Methods</h2>
38
39 <h3>.clone() [page:Fog]</h3>
40 <div>Returns a copy of this.</div>
41
42 <h2>Source</h2>
43
44 [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
45 </body>
46</html>
Note: See TracBrowser for help on using the repository browser.