'use strict';

var Object3D = require( '../object3d' );
var Filter = require( '../math/filter' );

function PointLight( color, intensity, distance ) {
  Object3D.call( this );

  this.color = color || 0;
  this.intensity = intensity || 0;
  this.distance = distance || 0;

  this.filter = new Filter();
}

PointLight.prototype = Object.create( Object3D.prototype );
PointLight.prototype.constructor = PointLight;

module.exports = PointLight;

'use strict';

var DirectionalLight = require( './directional-light' );

function PointLight( color, intensity, distance ) {
  DirectionalLight.call( this, color, intensity );

  this.distance = distance || 0;
}

PointLight.prototype = Object.create( DirectionalLight.prototype );
PointLight.prototype.constructor = PointLight;

module.exports = PointLight;

Convert PointLight to a subclass of DirectionalLight.
Convert PointLight to a subclass of DirectionalLight.
