source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/lights/Light.js@ 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: 488 bytes
Line 
1/**
2 * @author mrdoob / http://mrdoob.com/
3 * @author alteredq / http://alteredqualia.com/
4 */
5
6THREE.Light = function ( hex ) {
7
8 THREE.Object3D.call( this );
9
10 this.color = new THREE.Color( hex );
11
12};
13
14THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
15
16THREE.Light.prototype.clone = function ( light ) {
17
18 if ( light === undefined ) light = new THREE.Light();
19
20 THREE.Object3D.prototype.clone.call( this, light );
21
22 light.color.copy( this.color );
23
24 return light;
25
26};
Note: See TracBrowser for help on using the repository browser.