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:
566 bytes
|
Rev | Line | |
---|
[28897] | 1 | /**
|
---|
| 2 | * @author mrdoob / http://mrdoob.com/
|
---|
| 3 | */
|
---|
| 4 |
|
---|
| 5 | THREE.PointLight = function ( hex, intensity, distance ) {
|
---|
| 6 |
|
---|
| 7 | THREE.Light.call( this, hex );
|
---|
| 8 |
|
---|
| 9 | this.intensity = ( intensity !== undefined ) ? intensity : 1;
|
---|
| 10 | this.distance = ( distance !== undefined ) ? distance : 0;
|
---|
| 11 |
|
---|
| 12 | };
|
---|
| 13 |
|
---|
| 14 | THREE.PointLight.prototype = Object.create( THREE.Light.prototype );
|
---|
| 15 |
|
---|
| 16 | THREE.PointLight.prototype.clone = function () {
|
---|
| 17 |
|
---|
| 18 | var light = new THREE.PointLight();
|
---|
| 19 |
|
---|
| 20 | THREE.Light.prototype.clone.call( this, light );
|
---|
| 21 |
|
---|
| 22 | light.intensity = this.intensity;
|
---|
| 23 | light.distance = this.distance;
|
---|
| 24 |
|
---|
| 25 | return light;
|
---|
| 26 |
|
---|
| 27 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.