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:
552 bytes
|
Rev | Line | |
---|
[28897] | 1 | /**
|
---|
| 2 | * @author MPanknin / http://www.redplant.de/
|
---|
| 3 | * @author alteredq / http://alteredqualia.com/
|
---|
| 4 | */
|
---|
| 5 |
|
---|
| 6 | THREE.AreaLight = function ( hex, intensity ) {
|
---|
| 7 |
|
---|
| 8 | THREE.Light.call( this, hex );
|
---|
| 9 |
|
---|
| 10 | this.normal = new THREE.Vector3( 0, -1, 0 );
|
---|
| 11 | this.right = new THREE.Vector3( 1, 0, 0 );
|
---|
| 12 |
|
---|
| 13 | this.intensity = ( intensity !== undefined ) ? intensity : 1;
|
---|
| 14 |
|
---|
| 15 | this.width = 1.0;
|
---|
| 16 | this.height = 1.0;
|
---|
| 17 |
|
---|
| 18 | this.constantAttenuation = 1.5;
|
---|
| 19 | this.linearAttenuation = 0.5;
|
---|
| 20 | this.quadraticAttenuation = 0.1;
|
---|
| 21 |
|
---|
| 22 | };
|
---|
| 23 |
|
---|
| 24 | THREE.AreaLight.prototype = Object.create( THREE.Light.prototype );
|
---|
| 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.