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:
411 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @author mrdoob / http://mrdoob.com/
|
---|
3 | * @author alteredq / http://alteredqualia.com/
|
---|
4 | */
|
---|
5 |
|
---|
6 | THREE.Fog = function ( hex, near, far ) {
|
---|
7 |
|
---|
8 | this.name = '';
|
---|
9 |
|
---|
10 | this.color = new THREE.Color( hex );
|
---|
11 |
|
---|
12 | this.near = ( near !== undefined ) ? near : 1;
|
---|
13 | this.far = ( far !== undefined ) ? far : 1000;
|
---|
14 |
|
---|
15 | };
|
---|
16 |
|
---|
17 | THREE.Fog.prototype.clone = function () {
|
---|
18 |
|
---|
19 | return new THREE.Fog( this.color.getHex(), this.near, this.far );
|
---|
20 |
|
---|
21 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.