diff --git a/examples/js/AnimationClipCreator.js b/examples/js/AnimationClipCreator.js index 359117defb6004..dae0bd4c7fd819 100644 --- a/examples/js/AnimationClipCreator.js +++ b/examples/js/AnimationClipCreator.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.AnimationClipCreator = function AnimationClipCreator () { +THREE.AnimationClipCreator = function AnimationClipCreator() { }; THREE.AnimationClipCreator.CreateRotationAnimation = function( period, axis ) { diff --git a/examples/js/BlendCharacter.js b/examples/js/BlendCharacter.js index 15467f1f0da0d3..f38c1490d38030 100644 --- a/examples/js/BlendCharacter.js +++ b/examples/js/BlendCharacter.js @@ -2,7 +2,7 @@ * @author Michael Guerrero / http://realitymeltdown.com */ -THREE.BlendCharacter = function BlendCharacter () { +THREE.BlendCharacter = function BlendCharacter() { this.animations = {}; this.weightSchedule = []; diff --git a/examples/js/Car.js b/examples/js/Car.js index 4b8bbb01fde3aa..f338261a32e742 100644 --- a/examples/js/Car.js +++ b/examples/js/Car.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Car = function Car () { +THREE.Car = function Car() { var scope = this; diff --git a/examples/js/GPUParticleSystem.js b/examples/js/GPUParticleSystem.js index d8fbc17c708cce..668a86b80b4e00 100644 --- a/examples/js/GPUParticleSystem.js +++ b/examples/js/GPUParticleSystem.js @@ -15,7 +15,7 @@ * */ -THREE.GPUParticleSystem = function GPUParticleSystem ( options ) { +THREE.GPUParticleSystem = function GPUParticleSystem( options ) { var self = this; var options = options || {}; @@ -282,7 +282,7 @@ THREE.GPUParticleSystem.prototype.constructor = THREE.GPUParticleSystem; // Subclass for particle containers, allows for very large arrays to be spread out -THREE.GPUParticleContainer = function GPUParticleContainer ( maxParticles, particleSystem ) { +THREE.GPUParticleContainer = function GPUParticleContainer( maxParticles, particleSystem ) { var self = this; self.PARTICLE_COUNT = maxParticles || 100000; diff --git a/examples/js/Gyroscope.js b/examples/js/Gyroscope.js index 3d51ac473f2927..a14b26d036e75a 100644 --- a/examples/js/Gyroscope.js +++ b/examples/js/Gyroscope.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Gyroscope = function Gyroscope () { +THREE.Gyroscope = function Gyroscope() { THREE.Object3D.call( this ); diff --git a/examples/js/MD2Character.js b/examples/js/MD2Character.js index 3829ebf2489a09..1227898054cdc2 100644 --- a/examples/js/MD2Character.js +++ b/examples/js/MD2Character.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.MD2Character = function MD2Character () { +THREE.MD2Character = function MD2Character() { var scope = this; diff --git a/examples/js/MD2CharacterComplex.js b/examples/js/MD2CharacterComplex.js index 8c6bfef11be142..23d2b819afefec 100644 --- a/examples/js/MD2CharacterComplex.js +++ b/examples/js/MD2CharacterComplex.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.MD2CharacterComplex = function MD2CharacterComplex () { +THREE.MD2CharacterComplex = function MD2CharacterComplex() { var scope = this; diff --git a/examples/js/MarchingCubes.js b/examples/js/MarchingCubes.js index bcc0c34c1fa214..ec82f54b7da246 100644 --- a/examples/js/MarchingCubes.js +++ b/examples/js/MarchingCubes.js @@ -5,7 +5,7 @@ * http://webglsamples.googlecode.com/hg/blob/blob.html */ -THREE.MarchingCubes = function MarchingCubes ( resolution, material, enableUvs, enableColors ) { +THREE.MarchingCubes = function MarchingCubes( resolution, material, enableUvs, enableColors ) { THREE.ImmediateRenderObject.call( this, material ); diff --git a/examples/js/Mirror.js b/examples/js/Mirror.js index be9b06efbe8cf9..2a71055f77e3d6 100644 --- a/examples/js/Mirror.js +++ b/examples/js/Mirror.js @@ -51,7 +51,7 @@ THREE.ShaderLib[ 'mirror' ] = { }; -THREE.Mirror = function Mirror ( renderer, camera, options ) { +THREE.Mirror = function Mirror( renderer, camera, options ) { THREE.Object3D.call( this ); diff --git a/examples/js/MorphAnimMesh.js b/examples/js/MorphAnimMesh.js index eb8189a5bb3942..5d422244bc3cdb 100644 --- a/examples/js/MorphAnimMesh.js +++ b/examples/js/MorphAnimMesh.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.MorphAnimMesh = function MorphAnimMesh ( geometry, material ) { +THREE.MorphAnimMesh = function MorphAnimMesh( geometry, material ) { THREE.Mesh.call( this, geometry, material ); diff --git a/examples/js/MorphAnimation.js b/examples/js/MorphAnimation.js index 50e1bd33cd3242..2b30b6870ccaea 100644 --- a/examples/js/MorphAnimation.js +++ b/examples/js/MorphAnimation.js @@ -3,7 +3,7 @@ * @author willy-vvu / http://willy-vvu.github.io */ -THREE.MorphAnimation = function MorphAnimation ( mesh ) { +THREE.MorphAnimation = function MorphAnimation( mesh ) { this.mesh = mesh; this.frames = mesh.morphTargetInfluences.length; diff --git a/examples/js/Ocean.js b/examples/js/Ocean.js index d79c719b30f166..a8a238dd8bbf74 100644 --- a/examples/js/Ocean.js +++ b/examples/js/Ocean.js @@ -1,4 +1,4 @@ -THREE.Ocean = function Ocean ( renderer, camera, scene, options ) { +THREE.Ocean = function Ocean( renderer, camera, scene, options ) { // flag used to trigger parameter changes this.changed = true; diff --git a/examples/js/Octree.js b/examples/js/Octree.js index 07a10913b4227b..caed21c013233c 100644 --- a/examples/js/Octree.js +++ b/examples/js/Octree.js @@ -73,7 +73,7 @@ =====================================================*/ - THREE.Octree = function Octree ( parameters ) { + THREE.Octree = function Octree( parameters ) { // handle parameters @@ -618,7 +618,7 @@ =====================================================*/ - THREE.OctreeObjectData = function OctreeObjectData ( object, part ) { + THREE.OctreeObjectData = function OctreeObjectData( object, part ) { // properties @@ -719,7 +719,7 @@ =====================================================*/ - THREE.OctreeNode = function OctreeNode ( parameters ) { + THREE.OctreeNode = function OctreeNode( parameters ) { // utility diff --git a/examples/js/SkyShader.js b/examples/js/SkyShader.js index 88931c4b023de8..e563aac3ea140b 100644 --- a/examples/js/SkyShader.js +++ b/examples/js/SkyShader.js @@ -238,7 +238,7 @@ THREE.ShaderLib[ 'sky' ] = { }; -THREE.Sky = function Sky () { +THREE.Sky = function Sky() { var skyShader = THREE.ShaderLib[ "sky" ]; var skyUniforms = THREE.UniformsUtils.clone( skyShader.uniforms ); diff --git a/examples/js/UCSCharacter.js b/examples/js/UCSCharacter.js index d160a68962f532..78d2ea7b420fee 100644 --- a/examples/js/UCSCharacter.js +++ b/examples/js/UCSCharacter.js @@ -1,4 +1,4 @@ -THREE.UCSCharacter = function UCSCharacter () { +THREE.UCSCharacter = function UCSCharacter() { var scope = this; diff --git a/examples/js/WaterShader.js b/examples/js/WaterShader.js index 0df67b013902f9..205fe4158ba6af 100644 --- a/examples/js/WaterShader.js +++ b/examples/js/WaterShader.js @@ -111,7 +111,7 @@ THREE.ShaderLib[ 'water' ] = { }; -THREE.Water = function Water ( renderer, camera, scene, options ) { +THREE.Water = function Water( renderer, camera, scene, options ) { THREE.Object3D.call( this ); this.name = 'water_' + this.id; diff --git a/examples/js/cameras/CombinedCamera.js b/examples/js/cameras/CombinedCamera.js index 9f79b22b5344e8..9e36618eef64ac 100644 --- a/examples/js/cameras/CombinedCamera.js +++ b/examples/js/cameras/CombinedCamera.js @@ -9,7 +9,7 @@ */ -THREE.CombinedCamera = function CombinedCamera ( width, height, fov, near, far, orthoNear, orthoFar ) { +THREE.CombinedCamera = function CombinedCamera( width, height, fov, near, far, orthoNear, orthoFar ) { THREE.Camera.call( this ); diff --git a/examples/js/controls/DeviceOrientationControls.js b/examples/js/controls/DeviceOrientationControls.js index 8e2b3846733821..9898cbb3d59fc9 100644 --- a/examples/js/controls/DeviceOrientationControls.js +++ b/examples/js/controls/DeviceOrientationControls.js @@ -5,7 +5,7 @@ * W3C Device Orientation control (http://w3c.github.io/deviceorientation/spec-source-orientation.html) */ -THREE.DeviceOrientationControls = function DeviceOrientationControls ( object ) { +THREE.DeviceOrientationControls = function DeviceOrientationControls( object ) { var scope = this; diff --git a/examples/js/controls/DragControls.js b/examples/js/controls/DragControls.js index 10b43f40eac2c2..3f208776f6eb06 100644 --- a/examples/js/controls/DragControls.js +++ b/examples/js/controls/DragControls.js @@ -2,7 +2,7 @@ * @author zz85 / https://github.com/zz85 * Running this will allow you to drag three.js objects around the screen. */ -THREE.DragControls = function DragControls ( _camera, _objects, _domElement ) { +THREE.DragControls = function DragControls( _camera, _objects, _domElement ) { var _projector = new THREE.Projector(); var _raycaster = new THREE.Raycaster(); diff --git a/examples/js/controls/EditorControls.js b/examples/js/controls/EditorControls.js index 0fa52563407ef6..2eb8318f31c591 100644 --- a/examples/js/controls/EditorControls.js +++ b/examples/js/controls/EditorControls.js @@ -5,7 +5,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.EditorControls = function EditorControls ( object, domElement ) { +THREE.EditorControls = function EditorControls( object, domElement ) { domElement = ( domElement !== undefined ) ? domElement : document; diff --git a/examples/js/controls/FirstPersonControls.js b/examples/js/controls/FirstPersonControls.js index 932677a375163f..ccc0fbe1aa7814 100644 --- a/examples/js/controls/FirstPersonControls.js +++ b/examples/js/controls/FirstPersonControls.js @@ -4,7 +4,7 @@ * @author paulirish / http://paulirish.com/ */ -THREE.FirstPersonControls = function FirstPersonControls ( object, domElement ) { +THREE.FirstPersonControls = function FirstPersonControls( object, domElement ) { this.object = object; this.target = new THREE.Vector3( 0, 0, 0 ); diff --git a/examples/js/controls/FlyControls.js b/examples/js/controls/FlyControls.js index a8bffaf921d118..8337f4e7cce573 100644 --- a/examples/js/controls/FlyControls.js +++ b/examples/js/controls/FlyControls.js @@ -2,7 +2,7 @@ * @author James Baicoianu / http://www.baicoianu.com/ */ -THREE.FlyControls = function FlyControls ( object, domElement ) { +THREE.FlyControls = function FlyControls( object, domElement ) { this.object = object; diff --git a/examples/js/controls/MouseControls.js b/examples/js/controls/MouseControls.js index 6a5c26473f5bbc..3c36b544856905 100644 --- a/examples/js/controls/MouseControls.js +++ b/examples/js/controls/MouseControls.js @@ -4,7 +4,7 @@ * This controls allow to change the orientation of the camera using the mouse */ -THREE.MouseControls = function MouseControls ( object ) { +THREE.MouseControls = function MouseControls( object ) { var scope = this; var PI_2 = Math.PI / 2; diff --git a/examples/js/controls/OrbitControls.js b/examples/js/controls/OrbitControls.js index 2274c112bd81f6..af61b422a49e8e 100644 --- a/examples/js/controls/OrbitControls.js +++ b/examples/js/controls/OrbitControls.js @@ -302,7 +302,7 @@ // Zoom - middle mouse, or mousewheel / touch: two finger spread or squish // Pan - right mouse, or arrow keys / touch: three finter swipe - THREE.OrbitControls = function OrbitControls ( object, domElement ) { + THREE.OrbitControls = function OrbitControls( object, domElement ) { var constraint = new OrbitConstraint( object ); diff --git a/examples/js/controls/OrthographicTrackballControls.js b/examples/js/controls/OrthographicTrackballControls.js index 5f1740204a4e8a..f5b5eba1051900 100644 --- a/examples/js/controls/OrthographicTrackballControls.js +++ b/examples/js/controls/OrthographicTrackballControls.js @@ -5,7 +5,7 @@ * @author Max Smolens / https://github.com/msmolens */ -THREE.OrthographicTrackballControls = function OrthographicTrackballControls ( object, domElement ) { +THREE.OrthographicTrackballControls = function OrthographicTrackballControls( object, domElement ) { var _this = this; var STATE = { NONE: - 1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 }; diff --git a/examples/js/controls/PointerLockControls.js b/examples/js/controls/PointerLockControls.js index e2f6eed435bc88..22d1cbf5dce718 100644 --- a/examples/js/controls/PointerLockControls.js +++ b/examples/js/controls/PointerLockControls.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.PointerLockControls = function PointerLockControls ( camera ) { +THREE.PointerLockControls = function PointerLockControls( camera ) { var scope = this; diff --git a/examples/js/controls/TrackballControls.js b/examples/js/controls/TrackballControls.js index 24d75daef404a9..6b240b0cb79fd7 100644 --- a/examples/js/controls/TrackballControls.js +++ b/examples/js/controls/TrackballControls.js @@ -5,7 +5,7 @@ * @author Luca Antiga / http://lantiga.github.io */ -THREE.TrackballControls = function TrackballControls ( object, domElement ) { +THREE.TrackballControls = function TrackballControls( object, domElement ) { var _this = this; var STATE = { NONE: - 1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM_PAN: 4 }; diff --git a/examples/js/controls/TransformControls.js b/examples/js/controls/TransformControls.js index 56f86db7d632ef..b1c54ac76a3c1a 100644 --- a/examples/js/controls/TransformControls.js +++ b/examples/js/controls/TransformControls.js @@ -78,7 +78,7 @@ var pickerMaterial = gizmoMaterial( { visible: false, transparent: false } ); - THREE.TransformGizmo = function TransformGizmo () { + THREE.TransformGizmo = function TransformGizmo() { var scope = this; @@ -218,7 +218,7 @@ }; - THREE.TransformGizmoTranslate = function TransformGizmoTranslate () { + THREE.TransformGizmoTranslate = function TransformGizmoTranslate() { THREE.TransformGizmo.call( this ); @@ -351,7 +351,7 @@ THREE.TransformGizmoTranslate.prototype = Object.create( THREE.TransformGizmo.prototype ); THREE.TransformGizmoTranslate.prototype.constructor = THREE.TransformGizmoTranslate; - THREE.TransformGizmoRotate = function TransformGizmoRotate () { + THREE.TransformGizmoRotate = function TransformGizmoRotate() { THREE.TransformGizmo.call( this ); @@ -501,7 +501,7 @@ THREE.TransformGizmoRotate.prototype = Object.create( THREE.TransformGizmo.prototype ); THREE.TransformGizmoRotate.prototype.constructor = THREE.TransformGizmoRotate; - THREE.TransformGizmoScale = function TransformGizmoScale () { + THREE.TransformGizmoScale = function TransformGizmoScale() { THREE.TransformGizmo.call( this ); @@ -601,7 +601,7 @@ THREE.TransformGizmoScale.prototype = Object.create( THREE.TransformGizmo.prototype ); THREE.TransformGizmoScale.prototype.constructor = THREE.TransformGizmoScale; - THREE.TransformControls = function TransformControls ( camera, domElement ) { + THREE.TransformControls = function TransformControls( camera, domElement ) { // TODO: Make non-uniform scale and rotate play nice in hierarchies // TODO: ADD RXYZ contol diff --git a/examples/js/controls/VRControls.js b/examples/js/controls/VRControls.js index bfb8261d183c4e..133ebd3203882c 100644 --- a/examples/js/controls/VRControls.js +++ b/examples/js/controls/VRControls.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com */ -THREE.VRControls = function VRControls ( object, onError ) { +THREE.VRControls = function VRControls( object, onError ) { var scope = this; diff --git a/examples/js/curves/NURBSCurve.js b/examples/js/curves/NURBSCurve.js index 59b650638c3a93..9722e7406771c9 100644 --- a/examples/js/curves/NURBSCurve.js +++ b/examples/js/curves/NURBSCurve.js @@ -13,7 +13,7 @@ * NURBS curve **************************************************************/ -THREE.NURBSCurve = function NURBSCurve ( degree, knots /* array of reals */, controlPoints /* array of Vector(2|3|4) */ ) { +THREE.NURBSCurve = function NURBSCurve( degree, knots /* array of reals */, controlPoints /* array of Vector(2|3|4) */ ) { this.degree = degree; this.knots = knots; diff --git a/examples/js/curves/NURBSSurface.js b/examples/js/curves/NURBSSurface.js index 282ca3ae71fa04..ec00553e8092ed 100644 --- a/examples/js/curves/NURBSSurface.js +++ b/examples/js/curves/NURBSSurface.js @@ -11,7 +11,7 @@ * NURBS surface **************************************************************/ -THREE.NURBSSurface = function NURBSSurface ( degree1, degree2, knots1, knots2 /* arrays of reals */, controlPoints /* array^2 of Vector(2|3|4) */ ) { +THREE.NURBSSurface = function NURBSSurface( degree1, degree2, knots1, knots2 /* arrays of reals */, controlPoints /* array^2 of Vector(2|3|4) */ ) { this.degree1 = degree1; this.degree2 = degree2; diff --git a/examples/js/effects/AnaglyphEffect.js b/examples/js/effects/AnaglyphEffect.js index 3d81f4a2b25857..392a9993b29d8f 100644 --- a/examples/js/effects/AnaglyphEffect.js +++ b/examples/js/effects/AnaglyphEffect.js @@ -4,7 +4,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.AnaglyphEffect = function AnaglyphEffect ( renderer, width, height ) { +THREE.AnaglyphEffect = function AnaglyphEffect( renderer, width, height ) { var eyeRight = new THREE.Matrix4(); var eyeLeft = new THREE.Matrix4(); diff --git a/examples/js/effects/AsciiEffect.js b/examples/js/effects/AsciiEffect.js index 3d7bd23629372a..d429591d7d2e7a 100644 --- a/examples/js/effects/AsciiEffect.js +++ b/examples/js/effects/AsciiEffect.js @@ -7,7 +7,7 @@ * 16 April 2012 - @blurspline */ -THREE.AsciiEffect = function AsciiEffect ( renderer, charSet, options ) { +THREE.AsciiEffect = function AsciiEffect( renderer, charSet, options ) { // its fun to create one your own! diff --git a/examples/js/effects/ParallaxBarrierEffect.js b/examples/js/effects/ParallaxBarrierEffect.js index 7b352d421df7b3..a3043afd2687a0 100644 --- a/examples/js/effects/ParallaxBarrierEffect.js +++ b/examples/js/effects/ParallaxBarrierEffect.js @@ -4,7 +4,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.ParallaxBarrierEffect = function ParallaxBarrierEffect ( renderer ) { +THREE.ParallaxBarrierEffect = function ParallaxBarrierEffect( renderer ) { var eyeRight = new THREE.Matrix4(); var eyeLeft = new THREE.Matrix4(); diff --git a/examples/js/effects/StereoEffect.js b/examples/js/effects/StereoEffect.js index 4e3a2087affef5..fbab7100f85974 100644 --- a/examples/js/effects/StereoEffect.js +++ b/examples/js/effects/StereoEffect.js @@ -7,7 +7,7 @@ * Off-axis stereoscopic effect based on http://paulbourke.net/stereographics/stereorender/ */ -THREE.StereoEffect = function StereoEffect ( renderer ) { +THREE.StereoEffect = function StereoEffect( renderer ) { // API diff --git a/examples/js/effects/VREffect.js b/examples/js/effects/VREffect.js index b342f03d8aae66..c5a0a97c6a93e0 100644 --- a/examples/js/effects/VREffect.js +++ b/examples/js/effects/VREffect.js @@ -9,7 +9,7 @@ * */ -THREE.VREffect = function VREffect ( renderer, onError ) { +THREE.VREffect = function VREffect( renderer, onError ) { var vrHMD; var eyeTranslationL, eyeFOVL; diff --git a/examples/js/exporters/OBJExporter.js b/examples/js/exporters/OBJExporter.js index 53d51dc78410f9..78a4ccd35a59fb 100644 --- a/examples/js/exporters/OBJExporter.js +++ b/examples/js/exporters/OBJExporter.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.OBJExporter = function OBJExporter () {}; +THREE.OBJExporter = function OBJExporter() {}; THREE.OBJExporter.prototype = { diff --git a/examples/js/exporters/STLBinaryExporter.js b/examples/js/exporters/STLBinaryExporter.js index eb16cf672456f3..fb97ec9b66483b 100644 --- a/examples/js/exporters/STLBinaryExporter.js +++ b/examples/js/exporters/STLBinaryExporter.js @@ -4,7 +4,7 @@ * @author mudcube / http://mudcu.be/ */ -THREE.STLBinaryExporter = function STLBinaryExporter () {}; +THREE.STLBinaryExporter = function STLBinaryExporter() {}; THREE.STLBinaryExporter.prototype = { diff --git a/examples/js/exporters/STLExporter.js b/examples/js/exporters/STLExporter.js index 2a4e5ae5bd0e36..cdcc16590ec1e8 100644 --- a/examples/js/exporters/STLExporter.js +++ b/examples/js/exporters/STLExporter.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.STLExporter = function STLExporter () {}; +THREE.STLExporter = function STLExporter() {}; THREE.STLExporter.prototype = { diff --git a/examples/js/exporters/TypedGeometryExporter.js b/examples/js/exporters/TypedGeometryExporter.js index f74d44a8672e1c..2430c8c71a5557 100644 --- a/examples/js/exporters/TypedGeometryExporter.js +++ b/examples/js/exporters/TypedGeometryExporter.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.TypedGeometryExporter = function TypedGeometryExporter () {}; +THREE.TypedGeometryExporter = function TypedGeometryExporter() {}; THREE.TypedGeometryExporter.prototype = { diff --git a/examples/js/geometries/ConvexGeometry.js b/examples/js/geometries/ConvexGeometry.js index 2ae8918dd0796b..1c5c648054a7d4 100644 --- a/examples/js/geometries/ConvexGeometry.js +++ b/examples/js/geometries/ConvexGeometry.js @@ -17,7 +17,7 @@ * 50 107 */ -THREE.ConvexGeometry = function ConvexGeometry ( vertices ) { +THREE.ConvexGeometry = function ConvexGeometry( vertices ) { THREE.Geometry.call( this ); diff --git a/examples/js/geometries/DecalGeometry.js b/examples/js/geometries/DecalGeometry.js index c26b24b451ae42..25eb00e4e65720 100644 --- a/examples/js/geometries/DecalGeometry.js +++ b/examples/js/geometries/DecalGeometry.js @@ -1,4 +1,4 @@ -THREE.DecalVertex = function DecalVertex ( v, n ) { +THREE.DecalVertex = function DecalVertex( v, n ) { this.vertex = v; this.normal = n; @@ -11,7 +11,7 @@ THREE.DecalVertex.prototype.clone = function() { }; -THREE.DecalGeometry = function DecalGeometry ( mesh, position, rotation, dimensions, check ) { +THREE.DecalGeometry = function DecalGeometry( mesh, position, rotation, dimensions, check ) { THREE.Geometry.call( this ); diff --git a/examples/js/geometries/TeapotBufferGeometry.js b/examples/js/geometries/TeapotBufferGeometry.js index 6fcb30f9d44f94..d63e386025e2ae 100644 --- a/examples/js/geometries/TeapotBufferGeometry.js +++ b/examples/js/geometries/TeapotBufferGeometry.js @@ -3,7 +3,7 @@ * * Tessellates the famous Utah teapot database by Martin Newell into triangles. * - * THREE.TeapotBufferGeometry = function TeapotBufferGeometry ( size, segments, bottom, lid, body, fitLid, blinn ) + * THREE.TeapotBufferGeometry = function TeapotBufferGeometry( size, segments, bottom, lid, body, fitLid, blinn ) * * defaults: size = 50, segments = 10, bottom = true, lid = true, body = true, * fitLid = false, blinn = true @@ -52,7 +52,7 @@ */ /*global THREE */ -THREE.TeapotBufferGeometry = function TeapotBufferGeometry ( size, segments, bottom, lid, body, fitLid, blinn ) { +THREE.TeapotBufferGeometry = function TeapotBufferGeometry( size, segments, bottom, lid, body, fitLid, blinn ) { "use strict"; diff --git a/examples/js/loaders/AMFLoader.js b/examples/js/loaders/AMFLoader.js index 44158740929bdf..74ec781f4ac2bd 100644 --- a/examples/js/loaders/AMFLoader.js +++ b/examples/js/loaders/AMFLoader.js @@ -19,7 +19,7 @@ * */ -THREE.AMFLoader = function AMFLoader ( manager ) { +THREE.AMFLoader = function AMFLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/AWDLoader.js b/examples/js/loaders/AWDLoader.js index 36208e3e3bd27a..e45156a59e22e0 100644 --- a/examples/js/loaders/AWDLoader.js +++ b/examples/js/loaders/AWDLoader.js @@ -70,7 +70,7 @@ } } - THREE.AWDLoader = function AWDLoader ( manager ) { + THREE.AWDLoader = function AWDLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/AssimpJSONLoader.js b/examples/js/loaders/AssimpJSONLoader.js index 6996bfd6eb880f..1f2568cff3d6e7 100644 --- a/examples/js/loaders/AssimpJSONLoader.js +++ b/examples/js/loaders/AssimpJSONLoader.js @@ -11,7 +11,7 @@ * See webgl_loader_assimp2json example. */ -THREE.AssimpJSONLoader = function AssimpJSONLoader ( manager ) { +THREE.AssimpJSONLoader = function AssimpJSONLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/BabylonLoader.js b/examples/js/loaders/BabylonLoader.js index 70c7950a22db5b..1230aa8e745e86 100644 --- a/examples/js/loaders/BabylonLoader.js +++ b/examples/js/loaders/BabylonLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.BabylonLoader = function BabylonLoader ( manager ) { +THREE.BabylonLoader = function BabylonLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/BinaryLoader.js b/examples/js/loaders/BinaryLoader.js index 6cc9ce44c8a9da..ddf91e14290870 100644 --- a/examples/js/loaders/BinaryLoader.js +++ b/examples/js/loaders/BinaryLoader.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.BinaryLoader = function BinaryLoader ( manager ) { +THREE.BinaryLoader = function BinaryLoader( manager ) { if ( typeof manager === 'boolean' ) { diff --git a/examples/js/loaders/ColladaLoader.js b/examples/js/loaders/ColladaLoader.js index 59ec3a8ff7eb8d..3eb24effbd92fa 100644 --- a/examples/js/loaders/ColladaLoader.js +++ b/examples/js/loaders/ColladaLoader.js @@ -57,7 +57,7 @@ }; - THREE.ColladaLoader = function ColladaLoader ( manager ) { + THREE.ColladaLoader = function ColladaLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/ColladaLoader2.js b/examples/js/loaders/ColladaLoader2.js index 5f733d682bf6cf..81a87c0471dc7b 100644 --- a/examples/js/loaders/ColladaLoader2.js +++ b/examples/js/loaders/ColladaLoader2.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.ColladaLoader = function ColladaLoader ( manager ) { +THREE.ColladaLoader = function ColladaLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/DDSLoader.js b/examples/js/loaders/DDSLoader.js index f19efc00188013..8b7c792f92e7eb 100644 --- a/examples/js/loaders/DDSLoader.js +++ b/examples/js/loaders/DDSLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.DDSLoader = function DDSLoader () { +THREE.DDSLoader = function DDSLoader() { this._parser = THREE.DDSLoader.parse; diff --git a/examples/js/loaders/KMZLoader.js b/examples/js/loaders/KMZLoader.js index 67ee39b024557f..527718101bf54b 100644 --- a/examples/js/loaders/KMZLoader.js +++ b/examples/js/loaders/KMZLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.KMZLoader = function KMZLoader ( manager ) { +THREE.KMZLoader = function KMZLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/MD2Loader.js b/examples/js/loaders/MD2Loader.js index 624ee8c291e740..7b8e499a4c6ca3 100644 --- a/examples/js/loaders/MD2Loader.js +++ b/examples/js/loaders/MD2Loader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.MD2Loader = function MD2Loader ( manager ) { +THREE.MD2Loader = function MD2Loader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/MTLLoader.js b/examples/js/loaders/MTLLoader.js index 62719e13201e76..3dff01d40234bb 100644 --- a/examples/js/loaders/MTLLoader.js +++ b/examples/js/loaders/MTLLoader.js @@ -4,7 +4,7 @@ * @author angelxuanchang */ -THREE.MTLLoader = function MTLLoader ( manager ) { +THREE.MTLLoader = function MTLLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/OBJLoader.js b/examples/js/loaders/OBJLoader.js index 07f566ad6c22e2..1ac236d17daf44 100644 --- a/examples/js/loaders/OBJLoader.js +++ b/examples/js/loaders/OBJLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.OBJLoader = function OBJLoader ( manager ) { +THREE.OBJLoader = function OBJLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/OBJMTLLoader.js b/examples/js/loaders/OBJMTLLoader.js index f000667c881ad5..31424666079153 100644 --- a/examples/js/loaders/OBJMTLLoader.js +++ b/examples/js/loaders/OBJMTLLoader.js @@ -5,7 +5,7 @@ * @author angelxuanchang */ -THREE.OBJMTLLoader = function OBJMTLLoader ( manager ) { +THREE.OBJMTLLoader = function OBJMTLLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/PDBLoader.js b/examples/js/loaders/PDBLoader.js index cb936b471562a2..15b1daeffa53a9 100644 --- a/examples/js/loaders/PDBLoader.js +++ b/examples/js/loaders/PDBLoader.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.PDBLoader = function PDBLoader ( manager ) { +THREE.PDBLoader = function PDBLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/PLYLoader.js b/examples/js/loaders/PLYLoader.js index 82cd8ff5e1c91c..f58542bc90712d 100644 --- a/examples/js/loaders/PLYLoader.js +++ b/examples/js/loaders/PLYLoader.js @@ -27,7 +27,7 @@ */ -THREE.PLYLoader = function PLYLoader ( manager ) { +THREE.PLYLoader = function PLYLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/PVRLoader.js b/examples/js/loaders/PVRLoader.js index a8c7bac366e2fd..80a8bfce8ed0c5 100644 --- a/examples/js/loaders/PVRLoader.js +++ b/examples/js/loaders/PVRLoader.js @@ -8,7 +8,7 @@ * TODO : implement loadMipmaps option */ -THREE.PVRLoader = function PVRLoader ( manager ) { +THREE.PVRLoader = function PVRLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/RGBELoader.js b/examples/js/loaders/RGBELoader.js index 159a58413c4240..6a5ba3f77ead4d 100644 --- a/examples/js/loaders/RGBELoader.js +++ b/examples/js/loaders/RGBELoader.js @@ -5,7 +5,7 @@ // https://github.com/mrdoob/three.js/issues/5552 // http://en.wikipedia.org/wiki/RGBE_image_format -THREE.HDRLoader = THREE.RGBELoader = function HDRLoader ( manager ) { +THREE.RGBELoader = function RGBELoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; @@ -15,7 +15,7 @@ THREE.HDRLoader = THREE.RGBELoader = function HDRLoader ( manager ) { THREE.RGBELoader.prototype = Object.create( THREE.BinaryTextureLoader.prototype ); // adapted from http://www.graphics.cornell.edu/~bjw/rgbe.html -THREE.RGBELoader.prototype._parser = function( buffer ) { +THREE.RGBELoader.prototype._parser = function ( buffer ) { var /* return codes for rgbe routines */ @@ -347,3 +347,5 @@ THREE.RGBELoader.prototype._parser = function( buffer ) { return null; }; + +THREE.HDRLoader = THREE.RGBELoader; diff --git a/examples/js/loaders/STLLoader.js b/examples/js/loaders/STLLoader.js index 6c89754802ef8e..7b555bb5ef3038 100644 --- a/examples/js/loaders/STLLoader.js +++ b/examples/js/loaders/STLLoader.js @@ -27,7 +27,7 @@ */ -THREE.STLLoader = function STLLoader ( manager ) { +THREE.STLLoader = function STLLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/SVGLoader.js b/examples/js/loaders/SVGLoader.js index 646d3d68f3b115..0619506ca4f8ab 100644 --- a/examples/js/loaders/SVGLoader.js +++ b/examples/js/loaders/SVGLoader.js @@ -3,7 +3,7 @@ * @author zz85 / http://joshuakoo.com/ */ -THREE.SVGLoader = function SVGLoader ( manager ) { +THREE.SVGLoader = function SVGLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/TGALoader.js b/examples/js/loaders/TGALoader.js index 130ff27f78f263..d874529ef1b6b1 100644 --- a/examples/js/loaders/TGALoader.js +++ b/examples/js/loaders/TGALoader.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.TGALoader = function TGALoader ( manager ) { +THREE.TGALoader = function TGALoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/UTF8Loader.js b/examples/js/loaders/UTF8Loader.js index 6b38fc7d5b081c..6c838169eee2a1 100644 --- a/examples/js/loaders/UTF8Loader.js +++ b/examples/js/loaders/UTF8Loader.js @@ -5,7 +5,7 @@ * Code to load/decompress mesh is taken from r100 of this webgl-loader */ -THREE.UTF8Loader = function UTF8Loader () {}; +THREE.UTF8Loader = function UTF8Loader() {}; /** * Load UTF8 encoded model diff --git a/examples/js/loaders/VRMLLoader.js b/examples/js/loaders/VRMLLoader.js index a12859f0831ba0..0c7496902d8c2f 100644 --- a/examples/js/loaders/VRMLLoader.js +++ b/examples/js/loaders/VRMLLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.VRMLLoader = function VRMLLoader ( manager ) { +THREE.VRMLLoader = function VRMLLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/VTKLoader.js b/examples/js/loaders/VTKLoader.js index 5357f4e7aa2058..c87d94cf3fcc44 100644 --- a/examples/js/loaders/VTKLoader.js +++ b/examples/js/loaders/VTKLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.VTKLoader = function VTKLoader ( manager ) { +THREE.VTKLoader = function VTKLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/examples/js/loaders/collada/Animation.js b/examples/js/loaders/collada/Animation.js index 6eed431ce16fdf..280f473fcce2c0 100644 --- a/examples/js/loaders/collada/Animation.js +++ b/examples/js/loaders/collada/Animation.js @@ -4,7 +4,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Animation = function Animation ( root, data ) { +THREE.Animation = function Animation( root, data ) { this.root = root; this.data = THREE.AnimationHandler.init( data ); diff --git a/examples/js/loaders/collada/KeyFrameAnimation.js b/examples/js/loaders/collada/KeyFrameAnimation.js index 77b0a4e0340df2..dcf8a3ef4dbe2c 100644 --- a/examples/js/loaders/collada/KeyFrameAnimation.js +++ b/examples/js/loaders/collada/KeyFrameAnimation.js @@ -6,7 +6,7 @@ * @author erik kitson */ -THREE.KeyFrameAnimation = function KeyFrameAnimation ( data ) { +THREE.KeyFrameAnimation = function KeyFrameAnimation( data ) { this.root = data.node; this.data = THREE.AnimationHandler.init( data ); diff --git a/examples/js/loaders/ctm/CTMLoader.js b/examples/js/loaders/ctm/CTMLoader.js index f0af6ec6b9887a..1f222556e901e4 100755 --- a/examples/js/loaders/ctm/CTMLoader.js +++ b/examples/js/loaders/ctm/CTMLoader.js @@ -8,7 +8,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.CTMLoader = function CTMLoader () { +THREE.CTMLoader = function CTMLoader() { THREE.Loader.call( this ); diff --git a/examples/js/loaders/deprecated/SceneLoader.js b/examples/js/loaders/deprecated/SceneLoader.js index 14d896e7965c17..ef62904c5beddd 100644 --- a/examples/js/loaders/deprecated/SceneLoader.js +++ b/examples/js/loaders/deprecated/SceneLoader.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.SceneLoader = function SceneLoader ( manager ) { +THREE.SceneLoader = function SceneLoader( manager ) { this.onLoadStart = function () {}; this.onLoadProgress = function() {}; diff --git a/examples/js/loaders/gltf/glTFAnimation.js b/examples/js/loaders/gltf/glTFAnimation.js index 90da68a08ae672..642708cf0b6918 100644 --- a/examples/js/loaders/gltf/glTFAnimation.js +++ b/examples/js/loaders/gltf/glTFAnimation.js @@ -2,7 +2,7 @@ * @author Tony Parisi / http://www.tonyparisi.com/ */ -THREE.glTFAnimator = ( function glTFAnimator () { +THREE.glTFAnimator = ( function () { var animators = []; @@ -33,7 +33,7 @@ THREE.glTFAnimator = ( function glTFAnimator () { })(); // Construction/initialization -THREE.glTFAnimation = function glTFAnimation (interps) +THREE.glTFAnimation = function(interps) { this.running = false; this.loop = false; @@ -109,7 +109,7 @@ THREE.glTFAnimation.prototype.update = function() //Interpolator class //Construction/initialization -THREE.glTFInterpolator = function glTFInterpolator (param) +THREE.glTFInterpolator = function(param) { this.keys = param.keys; this.values = param.values; diff --git a/examples/js/loaders/gltf/glTFLoader.js b/examples/js/loaders/gltf/glTFLoader.js index fbf044374a2f5a..85ba4d7085c4ac 100644 --- a/examples/js/loaders/gltf/glTFLoader.js +++ b/examples/js/loaders/gltf/glTFLoader.js @@ -3,7 +3,7 @@ */ -THREE.glTFLoader = function glTFLoader () { +THREE.glTFLoader = function () { this.meshesRequested = 0; this.meshesLoaded = 0; this.pendingMeshes = []; diff --git a/examples/js/math/Lut.js b/examples/js/math/Lut.js index d6750ad20cce57..b35e43d27c2acb 100644 --- a/examples/js/math/Lut.js +++ b/examples/js/math/Lut.js @@ -2,7 +2,7 @@ * @author daron1337 / http://daron1337.github.io/ */ -THREE.Lut = function Lut ( colormap, numberofcolors ) { +THREE.Lut = function Lut( colormap, numberofcolors ) { this.lut = []; this.map = THREE.ColorMapKeywords[ colormap ]; diff --git a/examples/js/modifiers/ExplodeModifier.js b/examples/js/modifiers/ExplodeModifier.js index c9c1458683c970..6fd5821ac22e0b 100644 --- a/examples/js/modifiers/ExplodeModifier.js +++ b/examples/js/modifiers/ExplodeModifier.js @@ -5,7 +5,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.ExplodeModifier = function ExplodeModifier () { +THREE.ExplodeModifier = function ExplodeModifier() { }; diff --git a/examples/js/modifiers/SubdivisionModifier.js b/examples/js/modifiers/SubdivisionModifier.js index 524695870b1064..a9c424bea171a0 100644 --- a/examples/js/modifiers/SubdivisionModifier.js +++ b/examples/js/modifiers/SubdivisionModifier.js @@ -15,7 +15,7 @@ * */ -THREE.SubdivisionModifier = function SubdivisionModifier ( subdivisions ) { +THREE.SubdivisionModifier = function SubdivisionModifier( subdivisions ) { this.subdivisions = ( subdivisions === undefined ) ? 1 : subdivisions; diff --git a/examples/js/modifiers/TessellateModifier.js b/examples/js/modifiers/TessellateModifier.js index 99663e22822974..28511eb456dfa9 100644 --- a/examples/js/modifiers/TessellateModifier.js +++ b/examples/js/modifiers/TessellateModifier.js @@ -5,7 +5,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.TessellateModifier = function TessellateModifier ( maxEdgeLength ) { +THREE.TessellateModifier = function TessellateModifier( maxEdgeLength ) { this.maxEdgeLength = maxEdgeLength; diff --git a/examples/js/objects/ShadowMesh.js b/examples/js/objects/ShadowMesh.js index a402a31988433b..f5987b446cd810 100644 --- a/examples/js/objects/ShadowMesh.js +++ b/examples/js/objects/ShadowMesh.js @@ -4,7 +4,7 @@ * A shadow Mesh that follows a shadow-casting Mesh in the scene, but is confined to a single plane. */ -THREE.ShadowMesh = function ShadowMesh ( mesh ) { +THREE.ShadowMesh = function ShadowMesh( mesh ) { var shadowMaterial = new THREE.MeshBasicMaterial( { diff --git a/examples/js/postprocessing/AdaptiveToneMappingPass.js b/examples/js/postprocessing/AdaptiveToneMappingPass.js index 09b55126a599d6..166ff86a72f9a6 100644 --- a/examples/js/postprocessing/AdaptiveToneMappingPass.js +++ b/examples/js/postprocessing/AdaptiveToneMappingPass.js @@ -7,7 +7,7 @@ * Full-screen tone-mapping shader based on http://www.graphics.cornell.edu/~jaf/publications/sig02_paper.pdf */ -THREE.AdaptiveToneMappingPass = function AdaptiveToneMappingPass ( adaptive, resolution ) { +THREE.AdaptiveToneMappingPass = function AdaptiveToneMappingPass( adaptive, resolution ) { this.resolution = ( resolution !== undefined ) ? resolution : 256; this.needsInit = true; diff --git a/examples/js/postprocessing/BloomPass.js b/examples/js/postprocessing/BloomPass.js index fa79318f191167..cd577d8df26d79 100644 --- a/examples/js/postprocessing/BloomPass.js +++ b/examples/js/postprocessing/BloomPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.BloomPass = function BloomPass ( strength, kernelSize, sigma, resolution ) { +THREE.BloomPass = function BloomPass( strength, kernelSize, sigma, resolution ) { strength = ( strength !== undefined ) ? strength : 1; kernelSize = ( kernelSize !== undefined ) ? kernelSize : 25; diff --git a/examples/js/postprocessing/BokehPass.js b/examples/js/postprocessing/BokehPass.js index 1b56d77707e5d8..1f0cc98d359552 100644 --- a/examples/js/postprocessing/BokehPass.js +++ b/examples/js/postprocessing/BokehPass.js @@ -3,7 +3,7 @@ */ -THREE.BokehPass = function BokehPass ( scene, camera, params ) { +THREE.BokehPass = function BokehPass( scene, camera, params ) { this.scene = scene; this.camera = camera; diff --git a/examples/js/postprocessing/DotScreenPass.js b/examples/js/postprocessing/DotScreenPass.js index fc80c7cf5d0552..e027aeeb26b75e 100644 --- a/examples/js/postprocessing/DotScreenPass.js +++ b/examples/js/postprocessing/DotScreenPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.DotScreenPass = function DotScreenPass ( center, angle, scale ) { +THREE.DotScreenPass = function DotScreenPass( center, angle, scale ) { if ( THREE.DotScreenShader === undefined ) console.error( "THREE.DotScreenPass relies on THREE.DotScreenShader" ); diff --git a/examples/js/postprocessing/EffectComposer.js b/examples/js/postprocessing/EffectComposer.js index 71b34f6b7d8283..366ad50a5fc788 100644 --- a/examples/js/postprocessing/EffectComposer.js +++ b/examples/js/postprocessing/EffectComposer.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.EffectComposer = function EffectComposer ( renderer, renderTarget ) { +THREE.EffectComposer = function EffectComposer( renderer, renderTarget ) { this.renderer = renderer; diff --git a/examples/js/postprocessing/FilmPass.js b/examples/js/postprocessing/FilmPass.js index a0b7dc0754c767..55d90efd4d9759 100644 --- a/examples/js/postprocessing/FilmPass.js +++ b/examples/js/postprocessing/FilmPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.FilmPass = function FilmPass ( noiseIntensity, scanlinesIntensity, scanlinesCount, grayscale ) { +THREE.FilmPass = function FilmPass( noiseIntensity, scanlinesIntensity, scanlinesCount, grayscale ) { if ( THREE.FilmShader === undefined ) console.error( "THREE.FilmPass relies on THREE.FilmShader" ); diff --git a/examples/js/postprocessing/GlitchPass.js b/examples/js/postprocessing/GlitchPass.js index 32ee266e04a551..d492a279daf1e4 100644 --- a/examples/js/postprocessing/GlitchPass.js +++ b/examples/js/postprocessing/GlitchPass.js @@ -2,7 +2,7 @@ */ -THREE.GlitchPass = function GlitchPass ( dt_size ) { +THREE.GlitchPass = function GlitchPass( dt_size ) { if ( THREE.DigitalGlitch === undefined ) console.error( "THREE.GlitchPass relies on THREE.DigitalGlitch" ); diff --git a/examples/js/postprocessing/MaskPass.js b/examples/js/postprocessing/MaskPass.js index 37717524e6c96a..5791872ff063e8 100644 --- a/examples/js/postprocessing/MaskPass.js +++ b/examples/js/postprocessing/MaskPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.MaskPass = function MaskPass ( scene, camera ) { +THREE.MaskPass = function MaskPass( scene, camera ) { this.scene = scene; this.camera = camera; @@ -67,7 +67,7 @@ THREE.MaskPass.prototype = { }; -THREE.ClearMaskPass = function ClearMaskPass () { +THREE.ClearMaskPass = function ClearMaskPass() { this.enabled = true; diff --git a/examples/js/postprocessing/RenderPass.js b/examples/js/postprocessing/RenderPass.js index 1e7d43c5548635..ac189bc7ce2919 100644 --- a/examples/js/postprocessing/RenderPass.js +++ b/examples/js/postprocessing/RenderPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.RenderPass = function RenderPass ( scene, camera, overrideMaterial, clearColor, clearAlpha ) { +THREE.RenderPass = function RenderPass( scene, camera, overrideMaterial, clearColor, clearAlpha ) { this.scene = scene; this.camera = camera; diff --git a/examples/js/postprocessing/SavePass.js b/examples/js/postprocessing/SavePass.js index e0eb46b4ca0003..28c4e7f2572b54 100644 --- a/examples/js/postprocessing/SavePass.js +++ b/examples/js/postprocessing/SavePass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.SavePass = function SavePass ( renderTarget ) { +THREE.SavePass = function SavePass( renderTarget ) { if ( THREE.CopyShader === undefined ) console.error( "THREE.SavePass relies on THREE.CopyShader" ); diff --git a/examples/js/postprocessing/ShaderPass.js b/examples/js/postprocessing/ShaderPass.js index 1b6bddf9ea4f5d..00a52ac2fb3c26 100644 --- a/examples/js/postprocessing/ShaderPass.js +++ b/examples/js/postprocessing/ShaderPass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.ShaderPass = function ShaderPass ( shader, textureID ) { +THREE.ShaderPass = function ShaderPass( shader, textureID ) { this.textureID = ( textureID !== undefined ) ? textureID : "tDiffuse"; diff --git a/examples/js/postprocessing/TexturePass.js b/examples/js/postprocessing/TexturePass.js index c3545e20891ccb..ce8564fa1bab8a 100644 --- a/examples/js/postprocessing/TexturePass.js +++ b/examples/js/postprocessing/TexturePass.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.TexturePass = function TexturePass ( texture, opacity ) { +THREE.TexturePass = function TexturePass( texture, opacity ) { if ( THREE.CopyShader === undefined ) console.error( "THREE.TexturePass relies on THREE.CopyShader" ); diff --git a/examples/js/renderers/CSS2DRenderer.js b/examples/js/renderers/CSS2DRenderer.js index 2862c05476cebd..e1f2814d5b8f1d 100644 --- a/examples/js/renderers/CSS2DRenderer.js +++ b/examples/js/renderers/CSS2DRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CSS2DObject = function CSS2DObject ( element ) { +THREE.CSS2DObject = function CSS2DObject( element ) { THREE.Object3D.call( this ); @@ -26,7 +26,7 @@ THREE.CSS2DObject.prototype.constructor = THREE.CSS2DObject; // -THREE.CSS2DRenderer = function CSS2DRenderer () { +THREE.CSS2DRenderer = function CSS2DRenderer() { console.log( 'THREE.CSS2DRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/CSS3DRenderer.js b/examples/js/renderers/CSS3DRenderer.js index 82ae4d9e856e89..bc4c14fb6927e8 100644 --- a/examples/js/renderers/CSS3DRenderer.js +++ b/examples/js/renderers/CSS3DRenderer.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CSS3DObject = function CSS3DObject ( element ) { +THREE.CSS3DObject = function CSS3DObject( element ) { THREE.Object3D.call( this ); @@ -25,7 +25,7 @@ THREE.CSS3DObject = function CSS3DObject ( element ) { THREE.CSS3DObject.prototype = Object.create( THREE.Object3D.prototype ); THREE.CSS3DObject.prototype.constructor = THREE.CSS3DObject; -THREE.CSS3DSprite = function CSS3DSprite ( element ) { +THREE.CSS3DSprite = function CSS3DSprite( element ) { THREE.CSS3DObject.call( this, element ); @@ -36,7 +36,7 @@ THREE.CSS3DSprite.prototype.constructor = THREE.CSS3DSprite; // -THREE.CSS3DRenderer = function CSS3DRenderer () { +THREE.CSS3DRenderer = function CSS3DRenderer() { console.log( 'THREE.CSS3DRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/CSS3DStereoRenderer.js b/examples/js/renderers/CSS3DStereoRenderer.js index 8ebca86287574a..aaf618a3da1833 100644 --- a/examples/js/renderers/CSS3DStereoRenderer.js +++ b/examples/js/renderers/CSS3DStereoRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CSS3DObject = function CSS3DObject ( element ) { +THREE.CSS3DObject = function CSS3DObject( element ) { THREE.Object3D.call( this ); @@ -33,7 +33,7 @@ THREE.CSS3DObject = function CSS3DObject ( element ) { THREE.CSS3DObject.prototype = Object.create( THREE.Object3D.prototype ); THREE.CSS3DObject.prototype.constructor = THREE.CSS3DObject; -THREE.CSS3DSprite = function CSS3DSprite ( element ) { +THREE.CSS3DSprite = function CSS3DSprite( element ) { THREE.CSS3DObject.call( this, element ); @@ -44,7 +44,7 @@ THREE.CSS3DSprite.prototype.constructor = THREE.CSS3DSprite; // -THREE.CSS3DStereoRenderer = function CSS3DStereoRenderer () { +THREE.CSS3DStereoRenderer = function CSS3DStereoRenderer() { console.log( 'THREE.CSS3DRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/CanvasRenderer.js b/examples/js/renderers/CanvasRenderer.js index c6d0ee9f777fb1..26aea47fa8836f 100644 --- a/examples/js/renderers/CanvasRenderer.js +++ b/examples/js/renderers/CanvasRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.SpriteCanvasMaterial = function SpriteCanvasMaterial ( parameters ) { +THREE.SpriteCanvasMaterial = function SpriteCanvasMaterial( parameters ) { THREE.Material.call( this ); @@ -30,7 +30,7 @@ THREE.SpriteCanvasMaterial.prototype.clone = function () { // -THREE.CanvasRenderer = function CanvasRenderer ( parameters ) { +THREE.CanvasRenderer = function CanvasRenderer( parameters ) { console.log( 'THREE.CanvasRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/Projector.js b/examples/js/renderers/Projector.js index 31f791b961e0d2..4874efb6af49d4 100644 --- a/examples/js/renderers/Projector.js +++ b/examples/js/renderers/Projector.js @@ -4,7 +4,7 @@ * @author julianwa / https://github.com/julianwa */ -THREE.RenderableObject = function RenderableObject () { +THREE.RenderableObject = function RenderableObject() { this.id = 0; @@ -16,7 +16,7 @@ THREE.RenderableObject = function RenderableObject () { // -THREE.RenderableFace = function RenderableFace () { +THREE.RenderableFace = function RenderableFace() { this.id = 0; @@ -40,7 +40,7 @@ THREE.RenderableFace = function RenderableFace () { // -THREE.RenderableVertex = function RenderableVertex () { +THREE.RenderableVertex = function RenderableVertex() { this.position = new THREE.Vector3(); this.positionWorld = new THREE.Vector3(); @@ -59,7 +59,7 @@ THREE.RenderableVertex.prototype.copy = function ( vertex ) { // -THREE.RenderableLine = function RenderableLine () { +THREE.RenderableLine = function RenderableLine() { this.id = 0; @@ -76,7 +76,7 @@ THREE.RenderableLine = function RenderableLine () { // -THREE.RenderableSprite = function RenderableSprite () { +THREE.RenderableSprite = function RenderableSprite() { this.id = 0; @@ -96,7 +96,7 @@ THREE.RenderableSprite = function RenderableSprite () { // -THREE.Projector = function Projector () { +THREE.Projector = function Projector() { var _object, _objectCount, _objectPool = [], _objectPoolLength = 0, _vertex, _vertexCount, _vertexPool = [], _vertexPoolLength = 0, diff --git a/examples/js/renderers/RaytracingRenderer.js b/examples/js/renderers/RaytracingRenderer.js index ce99fb06c472a6..8d34ee3a25d1f2 100644 --- a/examples/js/renderers/RaytracingRenderer.js +++ b/examples/js/renderers/RaytracingRenderer.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.RaytracingRenderer = function RaytracingRenderer ( parameters ) { +THREE.RaytracingRenderer = function RaytracingRenderer( parameters ) { console.log( 'THREE.RaytracingRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/SVGRenderer.js b/examples/js/renderers/SVGRenderer.js index 69d9df8c1c2fdd..d27c65729b38d4 100644 --- a/examples/js/renderers/SVGRenderer.js +++ b/examples/js/renderers/SVGRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.SVGObject = function SVGObject ( node ) { +THREE.SVGObject = function SVGObject( node ) { THREE.Object3D.call( this ); @@ -13,7 +13,7 @@ THREE.SVGObject = function SVGObject ( node ) { THREE.SVGObject.prototype = Object.create( THREE.Object3D.prototype ); THREE.SVGObject.prototype.constructor = THREE.SVGObject; -THREE.SVGRenderer = function SVGRenderer () { +THREE.SVGRenderer = function SVGRenderer() { console.log( 'THREE.SVGRenderer', THREE.REVISION ); diff --git a/examples/js/renderers/SoftwareRenderer.js b/examples/js/renderers/SoftwareRenderer.js index 900ec9f126561c..3e3a699bef8278 100644 --- a/examples/js/renderers/SoftwareRenderer.js +++ b/examples/js/renderers/SoftwareRenderer.js @@ -5,7 +5,7 @@ * @author daoshengmu / http://dsmu.me/ */ -THREE.SoftwareRenderer = function SoftwareRenderer ( parameters ) { +THREE.SoftwareRenderer = function SoftwareRenderer( parameters ) { console.log( 'THREE.SoftwareRenderer', THREE.REVISION ); diff --git a/examples/js/utils/ShadowMapViewer.js b/examples/js/utils/ShadowMapViewer.js index 4f8637cc06a65b..e1e18627831fed 100644 --- a/examples/js/utils/ShadowMapViewer.js +++ b/examples/js/utils/ShadowMapViewer.js @@ -27,7 +27,7 @@ * 6) If you set the position or size members directly, you need to call shadowMapViewer.update(); */ -THREE.ShadowMapViewer = function ShadowMapViewer ( light ) { +THREE.ShadowMapViewer = function ShadowMapViewer( light ) { //- Internals var scope = this; diff --git a/examples/js/utils/UVsDebug.js b/examples/js/utils/UVsDebug.js index f4376e502392b7..a64741e894f294 100644 --- a/examples/js/utils/UVsDebug.js +++ b/examples/js/utils/UVsDebug.js @@ -10,7 +10,7 @@ * */ -THREE.UVsDebug = function UVsDebug ( geometry, size ) { +THREE.UVsDebug = function UVsDebug( geometry, size ) { // handles wrapping of uv.x > 1 only diff --git a/examples/webgl_gpgpu_birds.html b/examples/webgl_gpgpu_birds.html index 31669998677db5..c34b9e460b453e 100644 --- a/examples/webgl_gpgpu_birds.html +++ b/examples/webgl_gpgpu_birds.html @@ -374,7 +374,7 @@ var BIRDS = WIDTH * WIDTH; // Custom Geometry - using 3 triangles each. No UVs, no normals currently. - THREE.BirdGeometry = function BirdGeometry () { + THREE.BirdGeometry = function BirdGeometry() { var triangles = BIRDS * 3; var points = triangles * 3; diff --git a/examples/webgl_modifier_subdivision.html b/examples/webgl_modifier_subdivision.html index ab4a3eac3ca4e2..cd72c2a5edacb5 100644 --- a/examples/webgl_modifier_subdivision.html +++ b/examples/webgl_modifier_subdivision.html @@ -90,7 +90,7 @@ geometriesParams.push({type: 'WaltHead', args: [ ], meshScale: 6 }); - THREE.WaltHead = function WaltHead () { + THREE.WaltHead = function WaltHead() { return geometry.clone(); }; @@ -103,7 +103,7 @@ geometriesParams.push({type: 'Suzanne', args: [ ], scale: 100, meshScale:2 }); - THREE.Suzanne = function Suzanne () { + THREE.Suzanne = function Suzanne() { return geometry.clone(); }; diff --git a/src/Three.js b/src/Three.js index 65b02b50cd1289..0b66c5ac1cb3fa 100644 --- a/src/Three.js +++ b/src/Three.js @@ -296,7 +296,7 @@ THREE.LoopPingPong = 2202; // DEPRECATED -THREE.Projector = function Projector () { +THREE.Projector = function Projector() { console.error( 'THREE.Projector has been moved to /examples/js/renderers/Projector.js.' ); @@ -322,7 +322,7 @@ THREE.Projector = function Projector () { }; -THREE.CanvasRenderer = function CanvasRenderer () { +THREE.CanvasRenderer = function CanvasRenderer() { console.error( 'THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js' ); diff --git a/src/animation/AnimationAction.js b/src/animation/AnimationAction.js index 56378fa0fd3196..22aa9d435bd310 100644 --- a/src/animation/AnimationAction.js +++ b/src/animation/AnimationAction.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.AnimationAction = function AnimationAction ( clip, startTime, timeScale, weight, loop ) { +THREE.AnimationAction = function AnimationAction( clip, startTime, timeScale, weight, loop ) { if( clip === undefined ) throw new Error( 'clip is null' ); this.clip = clip; diff --git a/src/animation/AnimationClip.js b/src/animation/AnimationClip.js index 038b0db30563e2..132944b816be8d 100644 --- a/src/animation/AnimationClip.js +++ b/src/animation/AnimationClip.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.AnimationClip = function AnimationClip ( name, duration, tracks ) { +THREE.AnimationClip = function AnimationClip( name, duration, tracks ) { this.name = name; this.tracks = tracks; diff --git a/src/animation/AnimationMixer.js b/src/animation/AnimationMixer.js index 10f3679b21e808..163f58655f312b 100644 --- a/src/animation/AnimationMixer.js +++ b/src/animation/AnimationMixer.js @@ -7,7 +7,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.AnimationMixer = function AnimationMixer ( root ) { +THREE.AnimationMixer = function AnimationMixer( root ) { this.root = root; this.time = 0; diff --git a/src/animation/KeyframeTrack.js b/src/animation/KeyframeTrack.js index 3d53c55e936e66..e5ba0a497ccb21 100644 --- a/src/animation/KeyframeTrack.js +++ b/src/animation/KeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.KeyframeTrack = function KeyframeTrack ( name, keys ) { +THREE.KeyframeTrack = function KeyframeTrack( name, keys ) { if( name === undefined ) throw new Error( "track name is undefined" ); if( keys === undefined || keys.length === 0 ) throw new Error( "no keys in track named " + name ); diff --git a/src/animation/PropertyBinding.js b/src/animation/PropertyBinding.js index 80e55616ad7628..bea813faa1679a 100644 --- a/src/animation/PropertyBinding.js +++ b/src/animation/PropertyBinding.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.PropertyBinding = function PropertyBinding ( rootNode, trackName ) { +THREE.PropertyBinding = function PropertyBinding( rootNode, trackName ) { this.rootNode = rootNode; this.trackName = trackName; diff --git a/src/animation/tracks/BooleanKeyframeTrack.js b/src/animation/tracks/BooleanKeyframeTrack.js index 3452aa1ee1d51e..069f233f986644 100644 --- a/src/animation/tracks/BooleanKeyframeTrack.js +++ b/src/animation/tracks/BooleanKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.BooleanKeyframeTrack = function BooleanKeyframeTrack ( name, keys ) { +THREE.BooleanKeyframeTrack = function BooleanKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/animation/tracks/ColorKeyframeTrack.js b/src/animation/tracks/ColorKeyframeTrack.js index 52af409c60d88c..f5a5dab941420e 100644 --- a/src/animation/tracks/ColorKeyframeTrack.js +++ b/src/animation/tracks/ColorKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.ColorKeyframeTrack = function ColorKeyframeTrack ( name, keys ) { +THREE.ColorKeyframeTrack = function ColorKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/animation/tracks/NumberKeyframeTrack.js b/src/animation/tracks/NumberKeyframeTrack.js index a6b95e278cc9c5..8f8d2428035bd8 100644 --- a/src/animation/tracks/NumberKeyframeTrack.js +++ b/src/animation/tracks/NumberKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.NumberKeyframeTrack = function NumberKeyframeTrack ( name, keys ) { +THREE.NumberKeyframeTrack = function NumberKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/animation/tracks/QuaternionKeyframeTrack.js b/src/animation/tracks/QuaternionKeyframeTrack.js index 25d5c4500e14c8..8340c8bca9ec86 100644 --- a/src/animation/tracks/QuaternionKeyframeTrack.js +++ b/src/animation/tracks/QuaternionKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.QuaternionKeyframeTrack = function QuaternionKeyframeTrack ( name, keys ) { +THREE.QuaternionKeyframeTrack = function QuaternionKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/animation/tracks/StringKeyframeTrack.js b/src/animation/tracks/StringKeyframeTrack.js index 8591b021db03f5..11225bbd91fb49 100644 --- a/src/animation/tracks/StringKeyframeTrack.js +++ b/src/animation/tracks/StringKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.StringKeyframeTrack = function StringKeyframeTrack ( name, keys ) { +THREE.StringKeyframeTrack = function StringKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/animation/tracks/VectorKeyframeTrack.js b/src/animation/tracks/VectorKeyframeTrack.js index 535599c101fd89..4aa8070ae23623 100644 --- a/src/animation/tracks/VectorKeyframeTrack.js +++ b/src/animation/tracks/VectorKeyframeTrack.js @@ -6,7 +6,7 @@ * @author David Sarno / http://lighthaus.us/ */ -THREE.VectorKeyframeTrack = function VectorKeyframeTrack ( name, keys ) { +THREE.VectorKeyframeTrack = function VectorKeyframeTrack( name, keys ) { THREE.KeyframeTrack.call( this, name, keys ); diff --git a/src/cameras/Camera.js b/src/cameras/Camera.js index 6d882da17dd349..4580289e78d3f7 100644 --- a/src/cameras/Camera.js +++ b/src/cameras/Camera.js @@ -4,7 +4,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.Camera = function Camera () { +THREE.Camera = function Camera() { THREE.Object3D.call( this ); diff --git a/src/cameras/CubeCamera.js b/src/cameras/CubeCamera.js index 3383ec9ea47550..782c444643cb54 100644 --- a/src/cameras/CubeCamera.js +++ b/src/cameras/CubeCamera.js @@ -5,7 +5,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.CubeCamera = function CubeCamera ( near, far, cubeResolution ) { +THREE.CubeCamera = function CubeCamera( near, far, cubeResolution ) { THREE.Object3D.call( this ); diff --git a/src/cameras/OrthographicCamera.js b/src/cameras/OrthographicCamera.js index b3fcacd52c2ee9..677648e3fed60c 100644 --- a/src/cameras/OrthographicCamera.js +++ b/src/cameras/OrthographicCamera.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.OrthographicCamera = function OrthographicCamera ( left, right, top, bottom, near, far ) { +THREE.OrthographicCamera = function OrthographicCamera( left, right, top, bottom, near, far ) { THREE.Camera.call( this ); diff --git a/src/cameras/PerspectiveCamera.js b/src/cameras/PerspectiveCamera.js index 600314f27772af..1b0c967dceedc9 100644 --- a/src/cameras/PerspectiveCamera.js +++ b/src/cameras/PerspectiveCamera.js @@ -4,7 +4,7 @@ * @author zz85 / http://www.lab4games.net/zz85/blog */ -THREE.PerspectiveCamera = function PerspectiveCamera ( fov, aspect, near, far ) { +THREE.PerspectiveCamera = function PerspectiveCamera( fov, aspect, near, far ) { THREE.Camera.call( this ); diff --git a/src/core/BufferAttribute.js b/src/core/BufferAttribute.js index a586272d7b9f2b..71e2673269f22a 100644 --- a/src/core/BufferAttribute.js +++ b/src/core/BufferAttribute.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.BufferAttribute = function BufferAttribute ( array, itemSize ) { +THREE.BufferAttribute = function BufferAttribute( array, itemSize ) { this.uuid = THREE.Math.generateUUID(); @@ -311,55 +311,55 @@ THREE.BufferAttribute.prototype = { // -THREE.Int8Attribute = function Int8Attribute ( array, itemSize ) { +THREE.Int8Attribute = function Int8Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Int8Array( array ), itemSize ); }; -THREE.Uint8Attribute = function Uint8Attribute ( array, itemSize ) { +THREE.Uint8Attribute = function Uint8Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Uint8Array( array ), itemSize ); }; -THREE.Uint8ClampedAttribute = function Uint8ClampedAttribute ( array, itemSize ) { +THREE.Uint8ClampedAttribute = function Uint8ClampedAttribute( array, itemSize ) { return new THREE.BufferAttribute( new Uint8ClampedArray( array ), itemSize ); }; -THREE.Int16Attribute = function Int16Attribute ( array, itemSize ) { +THREE.Int16Attribute = function Int16Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Int16Array( array ), itemSize ); }; -THREE.Uint16Attribute = function Uint16Attribute ( array, itemSize ) { +THREE.Uint16Attribute = function Uint16Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Uint16Array( array ), itemSize ); }; -THREE.Int32Attribute = function Int32Attribute ( array, itemSize ) { +THREE.Int32Attribute = function Int32Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Int32Array( array ), itemSize ); }; -THREE.Uint32Attribute = function Uint32Attribute ( array, itemSize ) { +THREE.Uint32Attribute = function Uint32Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Uint32Array( array ), itemSize ); }; -THREE.Float32Attribute = function Float32Attribute ( array, itemSize ) { +THREE.Float32Attribute = function Float32Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Float32Array( array ), itemSize ); }; -THREE.Float64Attribute = function Float64Attribute ( array, itemSize ) { +THREE.Float64Attribute = function Float64Attribute( array, itemSize ) { return new THREE.BufferAttribute( new Float64Array( array ), itemSize ); @@ -368,7 +368,7 @@ THREE.Float64Attribute = function Float64Attribute ( array, itemSize ) { // Deprecated -THREE.DynamicBufferAttribute = function DynamicBufferAttribute ( array, itemSize ) { +THREE.DynamicBufferAttribute = function DynamicBufferAttribute( array, itemSize ) { console.warn( 'THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead.' ); return new THREE.BufferAttribute( array, itemSize ).setDynamic( true ); diff --git a/src/core/BufferGeometry.js b/src/core/BufferGeometry.js index 00612b9b97c2d0..b7ff1501232499 100644 --- a/src/core/BufferGeometry.js +++ b/src/core/BufferGeometry.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.BufferGeometry = function BufferGeometry () { +THREE.BufferGeometry = function BufferGeometry() { Object.defineProperty( this, 'id', { value: THREE.GeometryIdCount ++ } ); diff --git a/src/core/Clock.js b/src/core/Clock.js index 304ab2a318468f..96792a6684445a 100644 --- a/src/core/Clock.js +++ b/src/core/Clock.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Clock = function Clock ( autoStart ) { +THREE.Clock = function Clock( autoStart ) { this.autoStart = ( autoStart !== undefined ) ? autoStart : true; diff --git a/src/core/DirectGeometry.js b/src/core/DirectGeometry.js index 85ab572a1d639d..e96753d3600753 100644 --- a/src/core/DirectGeometry.js +++ b/src/core/DirectGeometry.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.DirectGeometry = function DirectGeometry () { +THREE.DirectGeometry = function DirectGeometry() { Object.defineProperty( this, 'id', { value: THREE.GeometryIdCount ++ } ); diff --git a/src/core/EventDispatcher.js b/src/core/EventDispatcher.js index 9945b31c5b3754..2fea9216f0da0a 100644 --- a/src/core/EventDispatcher.js +++ b/src/core/EventDispatcher.js @@ -2,7 +2,7 @@ * https://github.com/mrdoob/eventdispatcher.js/ */ -THREE.EventDispatcher = function EventDispatcher () {}; +THREE.EventDispatcher = function EventDispatcher() {}; THREE.EventDispatcher.prototype = { diff --git a/src/core/Face3.js b/src/core/Face3.js index e64338d1ad9169..b60d521b3a6c1b 100644 --- a/src/core/Face3.js +++ b/src/core/Face3.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Face3 = function Face3 ( a, b, c, normal, color, materialIndex ) { +THREE.Face3 = function Face3( a, b, c, normal, color, materialIndex ) { this.a = a; this.b = b; diff --git a/src/core/Face4.js b/src/core/Face4.js index 26822b5ce7ce7d..981b17eeb599d2 100644 --- a/src/core/Face4.js +++ b/src/core/Face4.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Face4 = function Face4 ( a, b, c, d, normal, color, materialIndex ) { +THREE.Face4 = function Face4( a, b, c, d, normal, color, materialIndex ) { console.warn( 'THREE.Face4 has been removed. A THREE.Face3 will be created instead.' ); return new THREE.Face3( a, b, c, normal, color, materialIndex ); diff --git a/src/core/Geometry.js b/src/core/Geometry.js index 30f1481166221e..3073717815255b 100644 --- a/src/core/Geometry.js +++ b/src/core/Geometry.js @@ -7,7 +7,7 @@ * @author bhouston / http://clara.io */ -THREE.Geometry = function Geometry () { +THREE.Geometry = function Geometry() { Object.defineProperty( this, 'id', { value: THREE.GeometryIdCount ++ } ); diff --git a/src/core/InstancedBufferAttribute.js b/src/core/InstancedBufferAttribute.js index 896e74037fbbda..5a4ccf578cc927 100644 --- a/src/core/InstancedBufferAttribute.js +++ b/src/core/InstancedBufferAttribute.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.InstancedBufferAttribute = function InstancedBufferAttribute ( array, itemSize, meshPerAttribute ) { +THREE.InstancedBufferAttribute = function InstancedBufferAttribute( array, itemSize, meshPerAttribute ) { THREE.BufferAttribute.call( this, array, itemSize ); diff --git a/src/core/InstancedBufferGeometry.js b/src/core/InstancedBufferGeometry.js index 108862410fb6f5..0dee0f098d878a 100644 --- a/src/core/InstancedBufferGeometry.js +++ b/src/core/InstancedBufferGeometry.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.InstancedBufferGeometry = function InstancedBufferGeometry () { +THREE.InstancedBufferGeometry = function InstancedBufferGeometry() { THREE.BufferGeometry.call( this ); diff --git a/src/core/InstancedInterleavedBuffer.js b/src/core/InstancedInterleavedBuffer.js index 05bc494414bf75..f1b1cab036c8a4 100644 --- a/src/core/InstancedInterleavedBuffer.js +++ b/src/core/InstancedInterleavedBuffer.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.InstancedInterleavedBuffer = function InstancedInterleavedBuffer ( array, stride, meshPerAttribute ) { +THREE.InstancedInterleavedBuffer = function InstancedInterleavedBuffer( array, stride, meshPerAttribute ) { THREE.InterleavedBuffer.call( this, array, stride ); diff --git a/src/core/InterleavedBuffer.js b/src/core/InterleavedBuffer.js index 3d422cfeae5038..cc0eed9884955a 100644 --- a/src/core/InterleavedBuffer.js +++ b/src/core/InterleavedBuffer.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.InterleavedBuffer = function InterleavedBuffer ( array, stride ) { +THREE.InterleavedBuffer = function InterleavedBuffer( array, stride ) { this.uuid = THREE.Math.generateUUID(); diff --git a/src/core/InterleavedBufferAttribute.js b/src/core/InterleavedBufferAttribute.js index 45e5fb366143e5..76e9e912d3c614 100644 --- a/src/core/InterleavedBufferAttribute.js +++ b/src/core/InterleavedBufferAttribute.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.InterleavedBufferAttribute = function InterleavedBufferAttribute ( interleavedBuffer, itemSize, offset ) { +THREE.InterleavedBufferAttribute = function InterleavedBufferAttribute( interleavedBuffer, itemSize, offset ) { this.uuid = THREE.Math.generateUUID(); diff --git a/src/core/Object3D.js b/src/core/Object3D.js index 4f4dd38ece6cad..d555906af5980a 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -6,7 +6,7 @@ * @author elephantatwork / www.elephantatwork.ch */ -THREE.Object3D = function Object3D () { +THREE.Object3D = function Object3D() { Object.defineProperty( this, 'id', { value: THREE.Object3DIdCount ++ } ); diff --git a/src/core/Raycaster.js b/src/core/Raycaster.js index 4b4eee3c5044d6..f1d63cbc6756af 100644 --- a/src/core/Raycaster.js +++ b/src/core/Raycaster.js @@ -6,7 +6,7 @@ ( function ( THREE ) { - THREE.Raycaster = function Raycaster ( origin, direction, near, far ) { + THREE.Raycaster = function Raycaster( origin, direction, near, far ) { this.ray = new THREE.Ray( origin, direction ); // direction is assumed to be normalized (for accurate distance calculations) diff --git a/src/extras/audio/Audio.js b/src/extras/audio/Audio.js index 77cd6d74d30e2e..d6d73a917eba73 100644 --- a/src/extras/audio/Audio.js +++ b/src/extras/audio/Audio.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Audio = function Audio ( listener ) { +THREE.Audio = function Audio( listener ) { THREE.Object3D.call( this ); diff --git a/src/extras/audio/AudioListener.js b/src/extras/audio/AudioListener.js index 9634ceaa88525e..150b973d33ad20 100644 --- a/src/extras/audio/AudioListener.js +++ b/src/extras/audio/AudioListener.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.AudioListener = function AudioListener () { +THREE.AudioListener = function AudioListener() { THREE.Object3D.call( this ); diff --git a/src/extras/core/Curve.js b/src/extras/core/Curve.js index 5ec95b2290eb74..866d3efc28423c 100644 --- a/src/extras/core/Curve.js +++ b/src/extras/core/Curve.js @@ -34,7 +34,7 @@ * Abstract Curve base class **************************************************************/ -THREE.Curve = function Curve () { +THREE.Curve = function Curve() { }; diff --git a/src/extras/core/CurvePath.js b/src/extras/core/CurvePath.js index e96ff74520594a..c04d835e40b296 100644 --- a/src/extras/core/CurvePath.js +++ b/src/extras/core/CurvePath.js @@ -8,7 +8,7 @@ * curves, but retains the api of a curve **************************************************************/ -THREE.CurvePath = function CurvePath () { +THREE.CurvePath = function CurvePath() { this.curves = []; this.bends = []; diff --git a/src/extras/core/Path.js b/src/extras/core/Path.js index 7e6b0778e17ef2..144897f48b5fb7 100644 --- a/src/extras/core/Path.js +++ b/src/extras/core/Path.js @@ -4,7 +4,7 @@ * **/ -THREE.Path = function Path ( points ) { +THREE.Path = function Path( points ) { THREE.CurvePath.call( this ); diff --git a/src/extras/core/Shape.js b/src/extras/core/Shape.js index 8e365afbd6e2e3..5621322a6fb4ff 100644 --- a/src/extras/core/Shape.js +++ b/src/extras/core/Shape.js @@ -9,7 +9,7 @@ // STEP 3a - Extract points from each shape, turn to vertices // STEP 3b - Triangulate each shape, add faces. -THREE.Shape = function Shape () { +THREE.Shape = function Shape() { THREE.Path.apply( this, arguments ); this.holes = []; diff --git a/src/extras/curves/ArcCurve.js b/src/extras/curves/ArcCurve.js index 3defb624221b34..b0f32dca51bdfa 100644 --- a/src/extras/curves/ArcCurve.js +++ b/src/extras/curves/ArcCurve.js @@ -2,7 +2,7 @@ * Arc curve **************************************************************/ -THREE.ArcCurve = function ArcCurve ( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) { +THREE.ArcCurve = function ArcCurve( aX, aY, aRadius, aStartAngle, aEndAngle, aClockwise ) { THREE.EllipseCurve.call( this, aX, aY, aRadius, aRadius, aStartAngle, aEndAngle, aClockwise ); diff --git a/src/extras/curves/CubicBezierCurve.js b/src/extras/curves/CubicBezierCurve.js index 781c7aa8054b07..b4b8aef7e4bcd8 100644 --- a/src/extras/curves/CubicBezierCurve.js +++ b/src/extras/curves/CubicBezierCurve.js @@ -2,7 +2,7 @@ * Cubic Bezier curve **************************************************************/ -THREE.CubicBezierCurve = function CubicBezierCurve ( v0, v1, v2, v3 ) { +THREE.CubicBezierCurve = function CubicBezierCurve( v0, v1, v2, v3 ) { this.v0 = v0; this.v1 = v1; diff --git a/src/extras/curves/EllipseCurve.js b/src/extras/curves/EllipseCurve.js index 942d49c2b28500..fac0b721dfec2c 100644 --- a/src/extras/curves/EllipseCurve.js +++ b/src/extras/curves/EllipseCurve.js @@ -2,7 +2,7 @@ * Ellipse curve **************************************************************/ -THREE.EllipseCurve = function EllipseCurve ( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) { +THREE.EllipseCurve = function EllipseCurve( aX, aY, xRadius, yRadius, aStartAngle, aEndAngle, aClockwise, aRotation ) { this.aX = aX; this.aY = aY; diff --git a/src/extras/curves/LineCurve.js b/src/extras/curves/LineCurve.js index 7fd7d9cee8b00f..044369e57bbbc4 100644 --- a/src/extras/curves/LineCurve.js +++ b/src/extras/curves/LineCurve.js @@ -2,7 +2,7 @@ * Line **************************************************************/ -THREE.LineCurve = function LineCurve ( v1, v2 ) { +THREE.LineCurve = function LineCurve( v1, v2 ) { this.v1 = v1; this.v2 = v2; diff --git a/src/extras/curves/QuadraticBezierCurve.js b/src/extras/curves/QuadraticBezierCurve.js index 293e718383a94a..3b2dc25d41a8b7 100644 --- a/src/extras/curves/QuadraticBezierCurve.js +++ b/src/extras/curves/QuadraticBezierCurve.js @@ -3,7 +3,7 @@ **************************************************************/ -THREE.QuadraticBezierCurve = function QuadraticBezierCurve ( v0, v1, v2 ) { +THREE.QuadraticBezierCurve = function QuadraticBezierCurve( v0, v1, v2 ) { this.v0 = v0; this.v1 = v1; diff --git a/src/extras/curves/SplineCurve.js b/src/extras/curves/SplineCurve.js index 5978d5818c7bc0..6bbfd900f4ecf4 100644 --- a/src/extras/curves/SplineCurve.js +++ b/src/extras/curves/SplineCurve.js @@ -2,7 +2,7 @@ * Spline curve **************************************************************/ -THREE.SplineCurve = function SplineCurve ( points /* array of Vector2 */ ) { +THREE.SplineCurve = function SplineCurve( points /* array of Vector2 */ ) { this.points = ( points == undefined ) ? [] : points; diff --git a/src/extras/geometries/BoxGeometry.js b/src/extras/geometries/BoxGeometry.js index f80748116769bd..c2fe26cb3b98cb 100644 --- a/src/extras/geometries/BoxGeometry.js +++ b/src/extras/geometries/BoxGeometry.js @@ -3,7 +3,7 @@ * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Cube.as */ -THREE.BoxGeometry = function BoxGeometry ( width, height, depth, widthSegments, heightSegments, depthSegments ) { +THREE.BoxGeometry = function BoxGeometry( width, height, depth, widthSegments, heightSegments, depthSegments ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/CircleBufferGeometry.js b/src/extras/geometries/CircleBufferGeometry.js index 4d8e463b214ad1..254ae21f883d80 100644 --- a/src/extras/geometries/CircleBufferGeometry.js +++ b/src/extras/geometries/CircleBufferGeometry.js @@ -2,7 +2,7 @@ * @author benaadams / https://twitter.com/ben_a_adams */ -THREE.CircleBufferGeometry = function CircleBufferGeometry ( radius, segments, thetaStart, thetaLength ) { +THREE.CircleBufferGeometry = function CircleBufferGeometry( radius, segments, thetaStart, thetaLength ) { THREE.BufferGeometry.call( this ); diff --git a/src/extras/geometries/CircleGeometry.js b/src/extras/geometries/CircleGeometry.js index b71fddbfb20dde..0bd1181ff4e080 100644 --- a/src/extras/geometries/CircleGeometry.js +++ b/src/extras/geometries/CircleGeometry.js @@ -2,7 +2,7 @@ * @author hughes */ -THREE.CircleGeometry = function CircleGeometry ( radius, segments, thetaStart, thetaLength ) { +THREE.CircleGeometry = function CircleGeometry( radius, segments, thetaStart, thetaLength ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/CylinderGeometry.js b/src/extras/geometries/CylinderGeometry.js index be26bf253782df..8f50197d03d543 100644 --- a/src/extras/geometries/CylinderGeometry.js +++ b/src/extras/geometries/CylinderGeometry.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CylinderGeometry = function CylinderGeometry ( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { +THREE.CylinderGeometry = function CylinderGeometry( radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/DodecahedronGeometry.js b/src/extras/geometries/DodecahedronGeometry.js index 7698e706d285e5..82256664ad9c67 100644 --- a/src/extras/geometries/DodecahedronGeometry.js +++ b/src/extras/geometries/DodecahedronGeometry.js @@ -2,7 +2,7 @@ * @author Abe Pazos / https://hamoid.com */ -THREE.DodecahedronGeometry = function DodecahedronGeometry ( radius, detail ) { +THREE.DodecahedronGeometry = function DodecahedronGeometry( radius, detail ) { var t = ( 1 + Math.sqrt( 5 ) ) / 2; var r = 1 / t; diff --git a/src/extras/geometries/EdgesGeometry.js b/src/extras/geometries/EdgesGeometry.js index 9ba5d2245c59fa..b9a462a3896552 100644 --- a/src/extras/geometries/EdgesGeometry.js +++ b/src/extras/geometries/EdgesGeometry.js @@ -2,7 +2,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.EdgesGeometry = function EdgesGeometry ( geometry, thresholdAngle ) { +THREE.EdgesGeometry = function EdgesGeometry( geometry, thresholdAngle ) { THREE.BufferGeometry.call( this ); diff --git a/src/extras/geometries/ExtrudeGeometry.js b/src/extras/geometries/ExtrudeGeometry.js index 7ff0b8c38c4712..f814febfa8f56a 100644 --- a/src/extras/geometries/ExtrudeGeometry.js +++ b/src/extras/geometries/ExtrudeGeometry.js @@ -22,7 +22,7 @@ * } **/ -THREE.ExtrudeGeometry = function ExtrudeGeometry ( shapes, options ) { +THREE.ExtrudeGeometry = function ExtrudeGeometry( shapes, options ) { if ( typeof( shapes ) === "undefined" ) { diff --git a/src/extras/geometries/IcosahedronGeometry.js b/src/extras/geometries/IcosahedronGeometry.js index 0f36de3990481b..cf8fd1a48f39a4 100644 --- a/src/extras/geometries/IcosahedronGeometry.js +++ b/src/extras/geometries/IcosahedronGeometry.js @@ -2,7 +2,7 @@ * @author timothypratley / https://github.com/timothypratley */ -THREE.IcosahedronGeometry = function IcosahedronGeometry ( radius, detail ) { +THREE.IcosahedronGeometry = function IcosahedronGeometry( radius, detail ) { var t = ( 1 + Math.sqrt( 5 ) ) / 2; diff --git a/src/extras/geometries/LatheGeometry.js b/src/extras/geometries/LatheGeometry.js index 635b3d3abe7aac..6fecf04ce86879 100644 --- a/src/extras/geometries/LatheGeometry.js +++ b/src/extras/geometries/LatheGeometry.js @@ -11,7 +11,7 @@ // phiLength - the radian (0 to 2*PI) range of the lathed section // 2*pi is a closed lathe, less than 2PI is a portion. -THREE.LatheGeometry = function LatheGeometry ( points, segments, phiStart, phiLength ) { +THREE.LatheGeometry = function LatheGeometry( points, segments, phiStart, phiLength ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/OctahedronGeometry.js b/src/extras/geometries/OctahedronGeometry.js index 9aa9ccc2abcc37..69d1282bda0570 100644 --- a/src/extras/geometries/OctahedronGeometry.js +++ b/src/extras/geometries/OctahedronGeometry.js @@ -2,7 +2,7 @@ * @author timothypratley / https://github.com/timothypratley */ -THREE.OctahedronGeometry = function OctahedronGeometry ( radius, detail ) { +THREE.OctahedronGeometry = function OctahedronGeometry( radius, detail ) { var vertices = [ 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1, 0, 0, 0, 1, 0, 0, - 1 diff --git a/src/extras/geometries/ParametricGeometry.js b/src/extras/geometries/ParametricGeometry.js index 7e51bf4fce2507..a057ba3f035e39 100644 --- a/src/extras/geometries/ParametricGeometry.js +++ b/src/extras/geometries/ParametricGeometry.js @@ -7,7 +7,7 @@ * */ -THREE.ParametricGeometry = function ParametricGeometry ( func, slices, stacks ) { +THREE.ParametricGeometry = function ParametricGeometry( func, slices, stacks ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/PlaneBufferGeometry.js b/src/extras/geometries/PlaneBufferGeometry.js index 4e4cceebeb8e4f..866edb9fabad4a 100644 --- a/src/extras/geometries/PlaneBufferGeometry.js +++ b/src/extras/geometries/PlaneBufferGeometry.js @@ -3,7 +3,7 @@ * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as */ -THREE.PlaneBufferGeometry = function PlaneBufferGeometry ( width, height, widthSegments, heightSegments ) { +THREE.PlaneBufferGeometry = function PlaneBufferGeometry( width, height, widthSegments, heightSegments ) { THREE.BufferGeometry.call( this ); diff --git a/src/extras/geometries/PlaneGeometry.js b/src/extras/geometries/PlaneGeometry.js index ed51ada8513ff4..deed69d91a7a1e 100644 --- a/src/extras/geometries/PlaneGeometry.js +++ b/src/extras/geometries/PlaneGeometry.js @@ -3,7 +3,7 @@ * based on http://papervision3d.googlecode.com/svn/trunk/as3/trunk/src/org/papervision3d/objects/primitives/Plane.as */ -THREE.PlaneGeometry = function PlaneGeometry ( width, height, widthSegments, heightSegments ) { +THREE.PlaneGeometry = function PlaneGeometry( width, height, widthSegments, heightSegments ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/PolyhedronGeometry.js b/src/extras/geometries/PolyhedronGeometry.js index d79142fc3e9252..2b2ded46981a49 100644 --- a/src/extras/geometries/PolyhedronGeometry.js +++ b/src/extras/geometries/PolyhedronGeometry.js @@ -4,7 +4,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.PolyhedronGeometry = function PolyhedronGeometry ( vertices, indices, radius, detail ) { +THREE.PolyhedronGeometry = function PolyhedronGeometry( vertices, indices, radius, detail ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/RingGeometry.js b/src/extras/geometries/RingGeometry.js index 60f6dbd0218736..958e85bc048ed9 100644 --- a/src/extras/geometries/RingGeometry.js +++ b/src/extras/geometries/RingGeometry.js @@ -2,7 +2,7 @@ * @author Kaleb Murphy */ -THREE.RingGeometry = function RingGeometry ( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) { +THREE.RingGeometry = function RingGeometry( innerRadius, outerRadius, thetaSegments, phiSegments, thetaStart, thetaLength ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/ShapeGeometry.js b/src/extras/geometries/ShapeGeometry.js index ba6d1f19a5373e..3aab9c0eb5f300 100644 --- a/src/extras/geometries/ShapeGeometry.js +++ b/src/extras/geometries/ShapeGeometry.js @@ -14,7 +14,7 @@ * } **/ -THREE.ShapeGeometry = function ShapeGeometry ( shapes, options ) { +THREE.ShapeGeometry = function ShapeGeometry( shapes, options ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/SphereBufferGeometry.js b/src/extras/geometries/SphereBufferGeometry.js index 370517bd04bf1a..08ae48be312f70 100644 --- a/src/extras/geometries/SphereBufferGeometry.js +++ b/src/extras/geometries/SphereBufferGeometry.js @@ -3,7 +3,7 @@ * based on THREE.SphereGeometry */ -THREE.SphereBufferGeometry = function SphereBufferGeometry ( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { +THREE.SphereBufferGeometry = function SphereBufferGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { THREE.BufferGeometry.call( this ); diff --git a/src/extras/geometries/SphereGeometry.js b/src/extras/geometries/SphereGeometry.js index fd91aa0d068a48..57ab473a1531e6 100644 --- a/src/extras/geometries/SphereGeometry.js +++ b/src/extras/geometries/SphereGeometry.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.SphereGeometry = function SphereGeometry ( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { +THREE.SphereGeometry = function SphereGeometry( radius, widthSegments, heightSegments, phiStart, phiLength, thetaStart, thetaLength ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/TetrahedronGeometry.js b/src/extras/geometries/TetrahedronGeometry.js index b77eacd51e56cf..520f93c0396638 100644 --- a/src/extras/geometries/TetrahedronGeometry.js +++ b/src/extras/geometries/TetrahedronGeometry.js @@ -2,7 +2,7 @@ * @author timothypratley / https://github.com/timothypratley */ -THREE.TetrahedronGeometry = function TetrahedronGeometry ( radius, detail ) { +THREE.TetrahedronGeometry = function TetrahedronGeometry( radius, detail ) { var vertices = [ 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1 diff --git a/src/extras/geometries/TextGeometry.js b/src/extras/geometries/TextGeometry.js index 5d5129952185fc..f552e22457ca2a 100644 --- a/src/extras/geometries/TextGeometry.js +++ b/src/extras/geometries/TextGeometry.js @@ -36,7 +36,7 @@ */ -THREE.TextGeometry = function TextGeometry ( text, parameters ) { +THREE.TextGeometry = function TextGeometry( text, parameters ) { parameters = parameters || {}; diff --git a/src/extras/geometries/TorusGeometry.js b/src/extras/geometries/TorusGeometry.js index 4e78d76c0629ef..87c33756363a29 100644 --- a/src/extras/geometries/TorusGeometry.js +++ b/src/extras/geometries/TorusGeometry.js @@ -4,7 +4,7 @@ * based on http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3DLite/src/away3dlite/primitives/Torus.as?r=2888 */ -THREE.TorusGeometry = function TorusGeometry ( radius, tube, radialSegments, tubularSegments, arc ) { +THREE.TorusGeometry = function TorusGeometry( radius, tube, radialSegments, tubularSegments, arc ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/TorusKnotGeometry.js b/src/extras/geometries/TorusKnotGeometry.js index 508a3a4166e503..16a03961cbf9cd 100644 --- a/src/extras/geometries/TorusKnotGeometry.js +++ b/src/extras/geometries/TorusKnotGeometry.js @@ -3,7 +3,7 @@ * based on http://code.google.com/p/away3d/source/browse/trunk/fp10/Away3D/src/away3d/primitives/TorusKnot.as?spec=svn2473&r=2473 */ -THREE.TorusKnotGeometry = function TorusKnotGeometry ( radius, tube, radialSegments, tubularSegments, p, q, heightScale ) { +THREE.TorusKnotGeometry = function TorusKnotGeometry( radius, tube, radialSegments, tubularSegments, p, q, heightScale ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/TubeGeometry.js b/src/extras/geometries/TubeGeometry.js index bf30adabbc2e66..9111253154d340 100644 --- a/src/extras/geometries/TubeGeometry.js +++ b/src/extras/geometries/TubeGeometry.js @@ -12,7 +12,7 @@ * http://www.cs.indiana.edu/pub/techreports/TR425.pdf */ -THREE.TubeGeometry = function TubeGeometry ( path, segments, radius, radialSegments, closed, taper ) { +THREE.TubeGeometry = function TubeGeometry( path, segments, radius, radialSegments, closed, taper ) { THREE.Geometry.call( this ); diff --git a/src/extras/geometries/WireframeGeometry.js b/src/extras/geometries/WireframeGeometry.js index ff7174ad56a4f0..aa8b4d7927d85d 100644 --- a/src/extras/geometries/WireframeGeometry.js +++ b/src/extras/geometries/WireframeGeometry.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WireframeGeometry = function WireframeGeometry ( geometry ) { +THREE.WireframeGeometry = function WireframeGeometry( geometry ) { THREE.BufferGeometry.call( this ); diff --git a/src/extras/helpers/AxisHelper.js b/src/extras/helpers/AxisHelper.js index 7e0d9a87ea8c56..9246b448c8d469 100644 --- a/src/extras/helpers/AxisHelper.js +++ b/src/extras/helpers/AxisHelper.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.AxisHelper = function AxisHelper ( size ) { +THREE.AxisHelper = function AxisHelper( size ) { size = size || 1; diff --git a/src/extras/helpers/BoundingBoxHelper.js b/src/extras/helpers/BoundingBoxHelper.js index d251a16c02c271..869b51549edcca 100644 --- a/src/extras/helpers/BoundingBoxHelper.js +++ b/src/extras/helpers/BoundingBoxHelper.js @@ -4,7 +4,7 @@ // a helper to show the world-axis-aligned bounding box for an object -THREE.BoundingBoxHelper = function BoundingBoxHelper ( object, hex ) { +THREE.BoundingBoxHelper = function BoundingBoxHelper( object, hex ) { var color = ( hex !== undefined ) ? hex : 0x888888; diff --git a/src/extras/helpers/BoxHelper.js b/src/extras/helpers/BoxHelper.js index 7d3e9abe7d6b8b..0ec6ddaa2c61b0 100644 --- a/src/extras/helpers/BoxHelper.js +++ b/src/extras/helpers/BoxHelper.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.BoxHelper = function BoxHelper ( object ) { +THREE.BoxHelper = function BoxHelper( object ) { var indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] ); var positions = new Float32Array( 8 * 3 ); diff --git a/src/extras/helpers/CameraHelper.js b/src/extras/helpers/CameraHelper.js index 1ad5e28e53a441..74aaec6896fd90 100644 --- a/src/extras/helpers/CameraHelper.js +++ b/src/extras/helpers/CameraHelper.js @@ -7,7 +7,7 @@ * http://evanw.github.com/lightgl.js/tests/shadowmap.html */ -THREE.CameraHelper = function CameraHelper ( camera ) { +THREE.CameraHelper = function CameraHelper( camera ) { var geometry = new THREE.Geometry(); var material = new THREE.LineBasicMaterial( { color: 0xffffff, vertexColors: THREE.FaceColors } ); diff --git a/src/extras/helpers/DirectionalLightHelper.js b/src/extras/helpers/DirectionalLightHelper.js index 0d05b6402cfb26..cf34f73ee91895 100644 --- a/src/extras/helpers/DirectionalLightHelper.js +++ b/src/extras/helpers/DirectionalLightHelper.js @@ -4,7 +4,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.DirectionalLightHelper = function DirectionalLightHelper ( light, size ) { +THREE.DirectionalLightHelper = function DirectionalLightHelper( light, size ) { THREE.Object3D.call( this ); diff --git a/src/extras/helpers/EdgesHelper.js b/src/extras/helpers/EdgesHelper.js index 0560863422b784..23e33b4345cd48 100644 --- a/src/extras/helpers/EdgesHelper.js +++ b/src/extras/helpers/EdgesHelper.js @@ -8,7 +8,7 @@ * an edge is only rendered if the angle is at least 10 degrees. */ -THREE.EdgesHelper = function EdgesHelper ( object, hex, thresholdAngle ) { +THREE.EdgesHelper = function EdgesHelper( object, hex, thresholdAngle ) { var color = ( hex !== undefined ) ? hex : 0xffffff; diff --git a/src/extras/helpers/FaceNormalsHelper.js b/src/extras/helpers/FaceNormalsHelper.js index d83e96a162e32e..90f0bcf1190c2b 100644 --- a/src/extras/helpers/FaceNormalsHelper.js +++ b/src/extras/helpers/FaceNormalsHelper.js @@ -3,7 +3,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.FaceNormalsHelper = function FaceNormalsHelper ( object, size, hex, linewidth ) { +THREE.FaceNormalsHelper = function FaceNormalsHelper( object, size, hex, linewidth ) { // FaceNormalsHelper only supports THREE.Geometry diff --git a/src/extras/helpers/GridHelper.js b/src/extras/helpers/GridHelper.js index 743cec4fc155d5..72061ac458d031 100644 --- a/src/extras/helpers/GridHelper.js +++ b/src/extras/helpers/GridHelper.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.GridHelper = function GridHelper ( size, step ) { +THREE.GridHelper = function GridHelper( size, step ) { var geometry = new THREE.Geometry(); var material = new THREE.LineBasicMaterial( { vertexColors: THREE.VertexColors } ); diff --git a/src/extras/helpers/HemisphereLightHelper.js b/src/extras/helpers/HemisphereLightHelper.js index 3211dd6030dd6d..d70ae461bb2db5 100644 --- a/src/extras/helpers/HemisphereLightHelper.js +++ b/src/extras/helpers/HemisphereLightHelper.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.HemisphereLightHelper = function HemisphereLightHelper ( light, sphereSize ) { +THREE.HemisphereLightHelper = function HemisphereLightHelper( light, sphereSize ) { THREE.Object3D.call( this ); diff --git a/src/extras/helpers/PointLightHelper.js b/src/extras/helpers/PointLightHelper.js index e123dff383511d..0a1a4af20c4710 100644 --- a/src/extras/helpers/PointLightHelper.js +++ b/src/extras/helpers/PointLightHelper.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.PointLightHelper = function PointLightHelper ( light, sphereSize ) { +THREE.PointLightHelper = function PointLightHelper( light, sphereSize ) { this.light = light; this.light.updateMatrixWorld(); diff --git a/src/extras/helpers/SkeletonHelper.js b/src/extras/helpers/SkeletonHelper.js index f845d590e3472a..c693f4933d2785 100644 --- a/src/extras/helpers/SkeletonHelper.js +++ b/src/extras/helpers/SkeletonHelper.js @@ -5,7 +5,7 @@ * @author ikerr / http://verold.com */ -THREE.SkeletonHelper = function SkeletonHelper ( object ) { +THREE.SkeletonHelper = function SkeletonHelper( object ) { this.bones = this.getBoneList( object ); diff --git a/src/extras/helpers/SpotLightHelper.js b/src/extras/helpers/SpotLightHelper.js index 339b43465d2a33..cdb54538e4b88b 100644 --- a/src/extras/helpers/SpotLightHelper.js +++ b/src/extras/helpers/SpotLightHelper.js @@ -4,7 +4,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.SpotLightHelper = function SpotLightHelper ( light ) { +THREE.SpotLightHelper = function SpotLightHelper( light ) { THREE.Object3D.call( this ); diff --git a/src/extras/helpers/VertexNormalsHelper.js b/src/extras/helpers/VertexNormalsHelper.js index 43dfddbc2b0289..3b2aaca3c218e1 100644 --- a/src/extras/helpers/VertexNormalsHelper.js +++ b/src/extras/helpers/VertexNormalsHelper.js @@ -3,7 +3,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.VertexNormalsHelper = function VertexNormalsHelper ( object, size, hex, linewidth ) { +THREE.VertexNormalsHelper = function VertexNormalsHelper( object, size, hex, linewidth ) { this.object = object; diff --git a/src/extras/helpers/WireframeHelper.js b/src/extras/helpers/WireframeHelper.js index ed6183952d8197..f55550c248aa3b 100644 --- a/src/extras/helpers/WireframeHelper.js +++ b/src/extras/helpers/WireframeHelper.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WireframeHelper = function WireframeHelper ( object, hex ) { +THREE.WireframeHelper = function WireframeHelper( object, hex ) { var color = ( hex !== undefined ) ? hex : 0xffffff; diff --git a/src/extras/objects/ImmediateRenderObject.js b/src/extras/objects/ImmediateRenderObject.js index 65034676337358..1e172717a53aef 100644 --- a/src/extras/objects/ImmediateRenderObject.js +++ b/src/extras/objects/ImmediateRenderObject.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.ImmediateRenderObject = function ImmediateRenderObject ( material ) { +THREE.ImmediateRenderObject = function ImmediateRenderObject( material ) { THREE.Object3D.call( this ); diff --git a/src/extras/objects/MorphBlendMesh.js b/src/extras/objects/MorphBlendMesh.js index 77c9da38164f7a..327913e08aef54 100644 --- a/src/extras/objects/MorphBlendMesh.js +++ b/src/extras/objects/MorphBlendMesh.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.MorphBlendMesh = function MorphBlendMesh ( geometry, material ) { +THREE.MorphBlendMesh = function MorphBlendMesh( geometry, material ) { THREE.Mesh.call( this, geometry, material ); diff --git a/src/lights/AmbientLight.js b/src/lights/AmbientLight.js index 2a7ba3f3f37792..58d308892b5b65 100644 --- a/src/lights/AmbientLight.js +++ b/src/lights/AmbientLight.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.AmbientLight = function AmbientLight ( color ) { +THREE.AmbientLight = function AmbientLight( color ) { THREE.Light.call( this, color ); diff --git a/src/lights/DirectionalLight.js b/src/lights/DirectionalLight.js index 9fb7dedd778a0e..8fd1b87f7d5f67 100644 --- a/src/lights/DirectionalLight.js +++ b/src/lights/DirectionalLight.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.DirectionalLight = function DirectionalLight ( color, intensity ) { +THREE.DirectionalLight = function DirectionalLight( color, intensity ) { THREE.Light.call( this, color ); diff --git a/src/lights/HemisphereLight.js b/src/lights/HemisphereLight.js index 5081f19ca6fe5f..003197e666d0d8 100644 --- a/src/lights/HemisphereLight.js +++ b/src/lights/HemisphereLight.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.HemisphereLight = function HemisphereLight ( skyColor, groundColor, intensity ) { +THREE.HemisphereLight = function HemisphereLight( skyColor, groundColor, intensity ) { THREE.Light.call( this, skyColor ); diff --git a/src/lights/Light.js b/src/lights/Light.js index f5cad1a1ff202d..8b4d9c9bf8fbbf 100644 --- a/src/lights/Light.js +++ b/src/lights/Light.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Light = function Light ( color ) { +THREE.Light = function Light( color ) { THREE.Object3D.call( this ); diff --git a/src/lights/PointLight.js b/src/lights/PointLight.js index 807d1001b70c99..064f77dab7a6ac 100644 --- a/src/lights/PointLight.js +++ b/src/lights/PointLight.js @@ -3,7 +3,7 @@ */ -THREE.PointLight = function PointLight ( color, intensity, distance, decay ) { +THREE.PointLight = function PointLight( color, intensity, distance, decay ) { THREE.Light.call( this, color ); diff --git a/src/lights/SpotLight.js b/src/lights/SpotLight.js index 448127ad0b2e80..b153646552b441 100644 --- a/src/lights/SpotLight.js +++ b/src/lights/SpotLight.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.SpotLight = function SpotLight ( color, intensity, distance, angle, exponent, decay ) { +THREE.SpotLight = function SpotLight( color, intensity, distance, angle, exponent, decay ) { THREE.Light.call( this, color ); diff --git a/src/loaders/AnimationLoader.js b/src/loaders/AnimationLoader.js index 9f8a59b561c170..bd680f57614e12 100644 --- a/src/loaders/AnimationLoader.js +++ b/src/loaders/AnimationLoader.js @@ -2,7 +2,7 @@ * @author bhouston / http://clara.io/ */ -THREE.AnimationLoader = function AnimationLoader ( manager ) { +THREE.AnimationLoader = function AnimationLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/loaders/BinaryTextureLoader.js b/src/loaders/BinaryTextureLoader.js index d45416af058eed..e90bc5076853e2 100644 --- a/src/loaders/BinaryTextureLoader.js +++ b/src/loaders/BinaryTextureLoader.js @@ -4,7 +4,7 @@ * Abstract Base class to load generic binary textures formats (rgbe, hdr, ...) */ -THREE.DataTextureLoader = THREE.BinaryTextureLoader = function DataTextureLoader ( manager ) { +THREE.BinaryTextureLoader = function BinaryTextureLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; @@ -94,3 +94,5 @@ THREE.BinaryTextureLoader.prototype = { } }; + +THREE.DataTextureLoader = THREE.BinaryTextureLoader; diff --git a/src/loaders/BufferGeometryLoader.js b/src/loaders/BufferGeometryLoader.js index f4e64dba8ab3ee..d7ed0746ff5697 100644 --- a/src/loaders/BufferGeometryLoader.js +++ b/src/loaders/BufferGeometryLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.BufferGeometryLoader = function BufferGeometryLoader ( manager ) { +THREE.BufferGeometryLoader = function BufferGeometryLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/loaders/CompressedTextureLoader.js b/src/loaders/CompressedTextureLoader.js index 7b84ce17c3a4f5..ef35189ef365b2 100644 --- a/src/loaders/CompressedTextureLoader.js +++ b/src/loaders/CompressedTextureLoader.js @@ -4,7 +4,7 @@ * Abstract Base class to block based textures loader (dds, pvr, ...) */ -THREE.CompressedTextureLoader = function CompressedTextureLoader ( manager ) { +THREE.CompressedTextureLoader = function CompressedTextureLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/loaders/ImageLoader.js b/src/loaders/ImageLoader.js index 1038cf7b4f99c1..88a8b2f4269728 100644 --- a/src/loaders/ImageLoader.js +++ b/src/loaders/ImageLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.ImageLoader = function ImageLoader ( manager ) { +THREE.ImageLoader = function ImageLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/loaders/JSONLoader.js b/src/loaders/JSONLoader.js index 4b15d0a79cdfcc..6ac699765ee049 100644 --- a/src/loaders/JSONLoader.js +++ b/src/loaders/JSONLoader.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.JSONLoader = function JSONLoader ( manager ) { +THREE.JSONLoader = function JSONLoader( manager ) { if ( typeof manager === 'boolean' ) { diff --git a/src/loaders/Loader.js b/src/loaders/Loader.js index 052fca09b5eef5..82db330fd1a055 100644 --- a/src/loaders/Loader.js +++ b/src/loaders/Loader.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Loader = function Loader () { +THREE.Loader = function Loader() { this.onLoadStart = function () {}; this.onLoadProgress = function () {}; diff --git a/src/loaders/LoadingManager.js b/src/loaders/LoadingManager.js index 1558677e03b2e6..4e1ccc3533b78d 100644 --- a/src/loaders/LoadingManager.js +++ b/src/loaders/LoadingManager.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.LoadingManager = function LoadingManager ( onLoad, onProgress, onError ) { +THREE.LoadingManager = function LoadingManager( onLoad, onProgress, onError ) { var scope = this; diff --git a/src/loaders/MaterialLoader.js b/src/loaders/MaterialLoader.js index f440f832a026a0..1e7c9c42455910 100644 --- a/src/loaders/MaterialLoader.js +++ b/src/loaders/MaterialLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.MaterialLoader = function MaterialLoader ( manager ) { +THREE.MaterialLoader = function MaterialLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; this.textures = {}; diff --git a/src/loaders/ObjectLoader.js b/src/loaders/ObjectLoader.js index 236f3945687101..12299e28e3525f 100755 --- a/src/loaders/ObjectLoader.js +++ b/src/loaders/ObjectLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.ObjectLoader = function ObjectLoader ( manager ) { +THREE.ObjectLoader = function ObjectLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; this.texturePath = ''; @@ -90,8 +90,6 @@ THREE.ObjectLoader.prototype = { var geometry; var data = json[ i ]; - console.log(data.type ); - switch ( data.type ) { case 'PlaneGeometry': diff --git a/src/loaders/TextureLoader.js b/src/loaders/TextureLoader.js index ab1541834febe4..c3b75e837a4da2 100644 --- a/src/loaders/TextureLoader.js +++ b/src/loaders/TextureLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.TextureLoader = function TextureLoader ( manager ) { +THREE.TextureLoader = function TextureLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/loaders/XHRLoader.js b/src/loaders/XHRLoader.js index 291d42795ab042..fc24882a83d0d8 100644 --- a/src/loaders/XHRLoader.js +++ b/src/loaders/XHRLoader.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.XHRLoader = function XHRLoader ( manager ) { +THREE.XHRLoader = function XHRLoader( manager ) { this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager; diff --git a/src/materials/LineBasicMaterial.js b/src/materials/LineBasicMaterial.js index 6474fd1074e0a2..cd03e08e99d9c1 100644 --- a/src/materials/LineBasicMaterial.js +++ b/src/materials/LineBasicMaterial.js @@ -20,7 +20,7 @@ * } */ -THREE.LineBasicMaterial = function LineBasicMaterial ( parameters ) { +THREE.LineBasicMaterial = function LineBasicMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/LineDashedMaterial.js b/src/materials/LineDashedMaterial.js index c027874c827cb7..be8990b8553d5c 100644 --- a/src/materials/LineDashedMaterial.js +++ b/src/materials/LineDashedMaterial.js @@ -21,7 +21,7 @@ * } */ -THREE.LineDashedMaterial = function LineDashedMaterial ( parameters ) { +THREE.LineDashedMaterial = function LineDashedMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/Material.js b/src/materials/Material.js index 0ba4f6ed4dbc23..46a4ad4d963cd1 100644 --- a/src/materials/Material.js +++ b/src/materials/Material.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Material = function Material () { +THREE.Material = function Material() { Object.defineProperty( this, 'id', { value: THREE.MaterialIdCount ++ } ); diff --git a/src/materials/MeshBasicMaterial.js b/src/materials/MeshBasicMaterial.js index 5e125f55469092..71c9b05efc1766 100644 --- a/src/materials/MeshBasicMaterial.js +++ b/src/materials/MeshBasicMaterial.js @@ -36,7 +36,7 @@ * } */ -THREE.MeshBasicMaterial = function MeshBasicMaterial ( parameters ) { +THREE.MeshBasicMaterial = function MeshBasicMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/MeshDepthMaterial.js b/src/materials/MeshDepthMaterial.js index a3195dafa5cb34..ed8cb862dceef4 100644 --- a/src/materials/MeshDepthMaterial.js +++ b/src/materials/MeshDepthMaterial.js @@ -14,7 +14,7 @@ * } */ -THREE.MeshDepthMaterial = function MeshDepthMaterial ( parameters ) { +THREE.MeshDepthMaterial = function MeshDepthMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/MeshLambertMaterial.js b/src/materials/MeshLambertMaterial.js index 81f9c25a7412a2..e537baeba351aa 100644 --- a/src/materials/MeshLambertMaterial.js +++ b/src/materials/MeshLambertMaterial.js @@ -35,7 +35,7 @@ * } */ -THREE.MeshLambertMaterial = function MeshLambertMaterial ( parameters ) { +THREE.MeshLambertMaterial = function MeshLambertMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/MeshNormalMaterial.js b/src/materials/MeshNormalMaterial.js index e92d0a0be2fb5b..7fcb9fc8e7b606 100644 --- a/src/materials/MeshNormalMaterial.js +++ b/src/materials/MeshNormalMaterial.js @@ -14,7 +14,7 @@ * } */ -THREE.MeshNormalMaterial = function MeshNormalMaterial ( parameters ) { +THREE.MeshNormalMaterial = function MeshNormalMaterial( parameters ) { THREE.Material.call( this, parameters ); diff --git a/src/materials/MeshPhongMaterial.js b/src/materials/MeshPhongMaterial.js index 2c2feab744dbab..4a6c53181ca0df 100644 --- a/src/materials/MeshPhongMaterial.js +++ b/src/materials/MeshPhongMaterial.js @@ -56,7 +56,7 @@ * } */ -THREE.MeshPhongMaterial = function MeshPhongMaterial ( parameters ) { +THREE.MeshPhongMaterial = function MeshPhongMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/MultiMaterial.js b/src/materials/MultiMaterial.js index bb8a907ba3dfc0..62cba1fd8fd89d 100644 --- a/src/materials/MultiMaterial.js +++ b/src/materials/MultiMaterial.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.MultiMaterial = function MultiMaterial ( materials ) { +THREE.MultiMaterial = function MultiMaterial( materials ) { this.uuid = THREE.Math.generateUUID(); diff --git a/src/materials/PointsMaterial.js b/src/materials/PointsMaterial.js index 6ba39948293889..f7ed782cf830cf 100644 --- a/src/materials/PointsMaterial.js +++ b/src/materials/PointsMaterial.js @@ -20,7 +20,7 @@ * } */ -THREE.PointsMaterial = function PointsMaterial ( parameters ) { +THREE.PointsMaterial = function PointsMaterial( parameters ) { THREE.Material.call( this ); @@ -63,21 +63,21 @@ THREE.PointsMaterial.prototype.copy = function ( source ) { // backwards compatibility -THREE.PointCloudMaterial = function PointCloudMaterial ( parameters ) { +THREE.PointCloudMaterial = function PointCloudMaterial( parameters ) { console.warn( 'THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial.' ); return new THREE.PointsMaterial( parameters ); }; -THREE.ParticleBasicMaterial = function ParticleBasicMaterial ( parameters ) { +THREE.ParticleBasicMaterial = function ParticleBasicMaterial( parameters ) { console.warn( 'THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial.' ); return new THREE.PointsMaterial( parameters ); }; -THREE.ParticleSystemMaterial = function ParticleSystemMaterial ( parameters ) { +THREE.ParticleSystemMaterial = function ParticleSystemMaterial( parameters ) { console.warn( 'THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial.' ); return new THREE.PointsMaterial( parameters ); diff --git a/src/materials/RawShaderMaterial.js b/src/materials/RawShaderMaterial.js index edf25ec4223850..0b796eccc6bef2 100644 --- a/src/materials/RawShaderMaterial.js +++ b/src/materials/RawShaderMaterial.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.RawShaderMaterial = function RawShaderMaterial ( parameters ) { +THREE.RawShaderMaterial = function RawShaderMaterial( parameters ) { THREE.ShaderMaterial.call( this, parameters ); diff --git a/src/materials/ShaderMaterial.js b/src/materials/ShaderMaterial.js index 45acbb875b2dd1..a0ed1b21f80dd4 100644 --- a/src/materials/ShaderMaterial.js +++ b/src/materials/ShaderMaterial.js @@ -28,7 +28,7 @@ * } */ -THREE.ShaderMaterial = function ShaderMaterial ( parameters ) { +THREE.ShaderMaterial = function ShaderMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/materials/SpriteMaterial.js b/src/materials/SpriteMaterial.js index ebc4d8fcd63fee..d909ac88ff5211 100644 --- a/src/materials/SpriteMaterial.js +++ b/src/materials/SpriteMaterial.js @@ -17,7 +17,7 @@ * } */ -THREE.SpriteMaterial = function SpriteMaterial ( parameters ) { +THREE.SpriteMaterial = function SpriteMaterial( parameters ) { THREE.Material.call( this ); diff --git a/src/math/Box2.js b/src/math/Box2.js index 1593f4416691a4..387208d8adf17a 100644 --- a/src/math/Box2.js +++ b/src/math/Box2.js @@ -2,7 +2,7 @@ * @author bhouston / http://clara.io */ -THREE.Box2 = function Box2 ( min, max ) { +THREE.Box2 = function Box2( min, max ) { this.min = ( min !== undefined ) ? min : new THREE.Vector2( Infinity, Infinity ); this.max = ( max !== undefined ) ? max : new THREE.Vector2( - Infinity, - Infinity ); diff --git a/src/math/Box3.js b/src/math/Box3.js index b0fb06df478fac..0c8f4aeb8c5ab5 100644 --- a/src/math/Box3.js +++ b/src/math/Box3.js @@ -3,7 +3,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.Box3 = function Box3 ( min, max ) { +THREE.Box3 = function Box3( min, max ) { this.min = ( min !== undefined ) ? min : new THREE.Vector3( Infinity, Infinity, Infinity ); this.max = ( max !== undefined ) ? max : new THREE.Vector3( - Infinity, - Infinity, - Infinity ); diff --git a/src/math/Color.js b/src/math/Color.js index e4535bbdd006c5..2afbefd9d542d7 100644 --- a/src/math/Color.js +++ b/src/math/Color.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Color = function Color ( color ) { +THREE.Color = function Color( color ) { if ( arguments.length === 3 ) { diff --git a/src/math/Euler.js b/src/math/Euler.js index a08874b91532a4..76ad4eb1a350d4 100644 --- a/src/math/Euler.js +++ b/src/math/Euler.js @@ -4,7 +4,7 @@ * @author bhouston / http://clara.io */ -THREE.Euler = function Euler ( x, y, z, order ) { +THREE.Euler = function Euler( x, y, z, order ) { this._x = x || 0; this._y = y || 0; diff --git a/src/math/Frustum.js b/src/math/Frustum.js index 5429cf7e78fb34..6fe7fad0e45ecd 100644 --- a/src/math/Frustum.js +++ b/src/math/Frustum.js @@ -4,7 +4,7 @@ * @author bhouston / http://clara.io */ -THREE.Frustum = function Frustum ( p0, p1, p2, p3, p4, p5 ) { +THREE.Frustum = function Frustum( p0, p1, p2, p3, p4, p5 ) { this.planes = [ diff --git a/src/math/Line3.js b/src/math/Line3.js index 31768721ddbf25..32280f572aa2cd 100644 --- a/src/math/Line3.js +++ b/src/math/Line3.js @@ -2,7 +2,7 @@ * @author bhouston / http://clara.io */ -THREE.Line3 = function Line3 ( start, end ) { +THREE.Line3 = function Line3( start, end ) { this.start = ( start !== undefined ) ? start : new THREE.Vector3(); this.end = ( end !== undefined ) ? end : new THREE.Vector3(); diff --git a/src/math/Matrix3.js b/src/math/Matrix3.js index dac67ca0b2b78c..bf7cf2ea17d621 100644 --- a/src/math/Matrix3.js +++ b/src/math/Matrix3.js @@ -4,7 +4,7 @@ * @author bhouston / http://clara.io */ -THREE.Matrix3 = function Matrix3 () { +THREE.Matrix3 = function Matrix3() { this.elements = new Float32Array( [ diff --git a/src/math/Matrix4.js b/src/math/Matrix4.js index 56afaa179e23c3..e3f3c7ba5693a1 100644 --- a/src/math/Matrix4.js +++ b/src/math/Matrix4.js @@ -11,7 +11,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.Matrix4 = function Matrix4 () { +THREE.Matrix4 = function Matrix4() { this.elements = new Float32Array( [ diff --git a/src/math/Plane.js b/src/math/Plane.js index 94832ca7f8eff1..d89bb9d390bfb2 100644 --- a/src/math/Plane.js +++ b/src/math/Plane.js @@ -2,7 +2,7 @@ * @author bhouston / http://clara.io */ -THREE.Plane = function Plane ( normal, constant ) { +THREE.Plane = function Plane( normal, constant ) { this.normal = ( normal !== undefined ) ? normal : new THREE.Vector3( 1, 0, 0 ); this.constant = ( constant !== undefined ) ? constant : 0; diff --git a/src/math/Quaternion.js b/src/math/Quaternion.js index 37d7b5b27f591e..29a31208d795d6 100644 --- a/src/math/Quaternion.js +++ b/src/math/Quaternion.js @@ -5,7 +5,7 @@ * @author bhouston / http://clara.io */ -THREE.Quaternion = function Quaternion ( x, y, z, w ) { +THREE.Quaternion = function Quaternion( x, y, z, w ) { this._x = x || 0; this._y = y || 0; diff --git a/src/math/Ray.js b/src/math/Ray.js index 44ad66a64ef3c0..df5b037599ccc9 100644 --- a/src/math/Ray.js +++ b/src/math/Ray.js @@ -2,7 +2,7 @@ * @author bhouston / http://clara.io */ -THREE.Ray = function Ray ( origin, direction ) { +THREE.Ray = function Ray( origin, direction ) { this.origin = ( origin !== undefined ) ? origin : new THREE.Vector3(); this.direction = ( direction !== undefined ) ? direction : new THREE.Vector3(); diff --git a/src/math/Sphere.js b/src/math/Sphere.js index 4700a7a3662221..5d6d564b37f0b0 100644 --- a/src/math/Sphere.js +++ b/src/math/Sphere.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Sphere = function Sphere ( center, radius ) { +THREE.Sphere = function Sphere( center, radius ) { this.center = ( center !== undefined ) ? center : new THREE.Vector3(); this.radius = ( radius !== undefined ) ? radius : 0; diff --git a/src/math/Spline.js b/src/math/Spline.js index 92ecdc25039b1a..745b329f9e9b5e 100644 --- a/src/math/Spline.js +++ b/src/math/Spline.js @@ -6,7 +6,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Spline = function Spline ( points ) { +THREE.Spline = function Spline( points ) { this.points = points; diff --git a/src/math/Triangle.js b/src/math/Triangle.js index 24e99ce00e8740..fb415fa3ebf46d 100644 --- a/src/math/Triangle.js +++ b/src/math/Triangle.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Triangle = function Triangle ( a, b, c ) { +THREE.Triangle = function Triangle( a, b, c ) { this.a = ( a !== undefined ) ? a : new THREE.Vector3(); this.b = ( b !== undefined ) ? b : new THREE.Vector3(); diff --git a/src/math/Vector2.js b/src/math/Vector2.js index 2371600baedebb..5e0b19d2123157 100644 --- a/src/math/Vector2.js +++ b/src/math/Vector2.js @@ -5,7 +5,7 @@ * @author zz85 / http://www.lab4games.net/zz85/blog */ -THREE.Vector2 = function Vector2 ( x, y ) { +THREE.Vector2 = function Vector2( x, y ) { this.x = x || 0; this.y = y || 0; diff --git a/src/math/Vector3.js b/src/math/Vector3.js index 1d4bef4d0ae6c3..73d61d5e7b22b2 100644 --- a/src/math/Vector3.js +++ b/src/math/Vector3.js @@ -7,7 +7,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.Vector3 = function Vector3 ( x, y, z ) { +THREE.Vector3 = function Vector3( x, y, z ) { this.x = x || 0; this.y = y || 0; diff --git a/src/math/Vector4.js b/src/math/Vector4.js index 8cd0f026fec9b1..87c9cd5c5f449c 100644 --- a/src/math/Vector4.js +++ b/src/math/Vector4.js @@ -6,7 +6,7 @@ * @author WestLangley / http://github.com/WestLangley */ -THREE.Vector4 = function Vector4 ( x, y, z, w ) { +THREE.Vector4 = function Vector4( x, y, z, w ) { this.x = x || 0; this.y = y || 0; diff --git a/src/objects/Bone.js b/src/objects/Bone.js index 06249b7951a049..3143ce8a944ac0 100644 --- a/src/objects/Bone.js +++ b/src/objects/Bone.js @@ -4,7 +4,7 @@ * @author ikerr / http://verold.com */ -THREE.Bone = function Bone ( skin ) { +THREE.Bone = function Bone( skin ) { THREE.Object3D.call( this ); diff --git a/src/objects/Group.js b/src/objects/Group.js index 4dcbc713e5087c..f6ea0a313677f4 100644 --- a/src/objects/Group.js +++ b/src/objects/Group.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Group = function Group () { +THREE.Group = function Group() { THREE.Object3D.call( this ); diff --git a/src/objects/LOD.js b/src/objects/LOD.js index b278bd10206f2e..e74f4c42238183 100644 --- a/src/objects/LOD.js +++ b/src/objects/LOD.js @@ -4,7 +4,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.LOD = function LOD () { +THREE.LOD = function LOD() { THREE.Object3D.call( this ); diff --git a/src/objects/LensFlare.js b/src/objects/LensFlare.js index 1aae685c2b71d1..65849bb5a5dfc4 100644 --- a/src/objects/LensFlare.js +++ b/src/objects/LensFlare.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.LensFlare = function LensFlare ( texture, size, distance, blending, color ) { +THREE.LensFlare = function LensFlare( texture, size, distance, blending, color ) { THREE.Object3D.call( this ); diff --git a/src/objects/Line.js b/src/objects/Line.js index 977dd5336b039d..2d2fe9b233eace 100644 --- a/src/objects/Line.js +++ b/src/objects/Line.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Line = function Line ( geometry, material, mode ) { +THREE.Line = function Line( geometry, material, mode ) { if ( mode === 1 ) { diff --git a/src/objects/LineSegments.js b/src/objects/LineSegments.js index ddb63b4537b13b..d4080326c1c8c1 100644 --- a/src/objects/LineSegments.js +++ b/src/objects/LineSegments.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.LineSegments = function LineSegments ( geometry, material ) { +THREE.LineSegments = function LineSegments( geometry, material ) { THREE.Line.call( this, geometry, material ); diff --git a/src/objects/Mesh.js b/src/objects/Mesh.js index deef51788f7cea..332ca04f0abd2a 100644 --- a/src/objects/Mesh.js +++ b/src/objects/Mesh.js @@ -5,7 +5,7 @@ * @author jonobr1 / http://jonobr1.com/ */ -THREE.Mesh = function Mesh ( geometry, material ) { +THREE.Mesh = function Mesh( geometry, material ) { THREE.Object3D.call( this ); diff --git a/src/objects/Points.js b/src/objects/Points.js index 59b6f3a2255d8c..1eedf6f0013430 100644 --- a/src/objects/Points.js +++ b/src/objects/Points.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Points = function Points ( geometry, material ) { +THREE.Points = function Points( geometry, material ) { THREE.Object3D.call( this ); @@ -126,14 +126,14 @@ THREE.Points.prototype.clone = function () { // Backwards compatibility -THREE.PointCloud = function PointCloud ( geometry, material ) { +THREE.PointCloud = function PointCloud( geometry, material ) { console.warn( 'THREE.PointCloud has been renamed to THREE.Points.' ); return new THREE.Points( geometry, material ); }; -THREE.ParticleSystem = function ParticleSystem ( geometry, material ) { +THREE.ParticleSystem = function ParticleSystem( geometry, material ) { console.warn( 'THREE.ParticleSystem has been renamed to THREE.Points.' ); return new THREE.Points( geometry, material ); diff --git a/src/objects/Skeleton.js b/src/objects/Skeleton.js index f42749fde26a58..e7d31dd4c8d012 100644 --- a/src/objects/Skeleton.js +++ b/src/objects/Skeleton.js @@ -5,7 +5,7 @@ * @author ikerr / http://verold.com */ -THREE.Skeleton = function Skeleton ( bones, boneInverses, useVertexTexture ) { +THREE.Skeleton = function Skeleton( bones, boneInverses, useVertexTexture ) { this.useVertexTexture = useVertexTexture !== undefined ? useVertexTexture : true; diff --git a/src/objects/SkinnedMesh.js b/src/objects/SkinnedMesh.js index 17564c57599a7c..b4952bd220f2ad 100644 --- a/src/objects/SkinnedMesh.js +++ b/src/objects/SkinnedMesh.js @@ -4,7 +4,7 @@ * @author ikerr / http://verold.com */ -THREE.SkinnedMesh = function SkinnedMesh ( geometry, material, useVertexTexture ) { +THREE.SkinnedMesh = function SkinnedMesh( geometry, material, useVertexTexture ) { THREE.Mesh.call( this, geometry, material ); diff --git a/src/renderers/WebGLRenderTarget.js b/src/renderers/WebGLRenderTarget.js index 8d56b14b3bc844..632dc86e51a699 100644 --- a/src/renderers/WebGLRenderTarget.js +++ b/src/renderers/WebGLRenderTarget.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.WebGLRenderTarget = function WebGLRenderTarget ( width, height, options ) { +THREE.WebGLRenderTarget = function WebGLRenderTarget( width, height, options ) { this.uuid = THREE.Math.generateUUID(); diff --git a/src/renderers/WebGLRenderTargetCube.js b/src/renderers/WebGLRenderTargetCube.js index 5f61adf452f700..0cd2210d20a53f 100644 --- a/src/renderers/WebGLRenderTargetCube.js +++ b/src/renderers/WebGLRenderTargetCube.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com */ -THREE.WebGLRenderTargetCube = function WebGLRenderTargetCube ( width, height, options ) { +THREE.WebGLRenderTargetCube = function WebGLRenderTargetCube( width, height, options ) { THREE.WebGLRenderTarget.call( this, width, height, options ); diff --git a/src/renderers/WebGLRenderer.js b/src/renderers/WebGLRenderer.js index 81375f519884c9..06fad66e6520bf 100644 --- a/src/renderers/WebGLRenderer.js +++ b/src/renderers/WebGLRenderer.js @@ -5,7 +5,7 @@ * @author szimek / https://github.com/szimek/ */ -THREE.WebGLRenderer = function WebGLRenderer ( parameters ) { +THREE.WebGLRenderer = function WebGLRenderer( parameters ) { console.log( 'THREE.WebGLRenderer', THREE.REVISION ); diff --git a/src/renderers/webgl/WebGLBufferRenderer.js b/src/renderers/webgl/WebGLBufferRenderer.js index bdedbac877f320..ba2e4b9508e137 100644 --- a/src/renderers/webgl/WebGLBufferRenderer.js +++ b/src/renderers/webgl/WebGLBufferRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLBufferRenderer = function WebGLBufferRenderer ( _gl, extensions, _infoRender ) { +THREE.WebGLBufferRenderer = function WebGLBufferRenderer( _gl, extensions, _infoRender ) { var mode; diff --git a/src/renderers/webgl/WebGLCapabilities.js b/src/renderers/webgl/WebGLCapabilities.js index da5e2fa69229c2..975495b4353b27 100644 --- a/src/renderers/webgl/WebGLCapabilities.js +++ b/src/renderers/webgl/WebGLCapabilities.js @@ -1,4 +1,4 @@ -THREE.WebGLCapabilities = function WebGLCapabilities ( gl, extensions, parameters ) { +THREE.WebGLCapabilities = function WebGLCapabilities( gl, extensions, parameters ) { function getMaxPrecision( precision ) { diff --git a/src/renderers/webgl/WebGLExtensions.js b/src/renderers/webgl/WebGLExtensions.js index 0f862af02103c4..b97857df1b325b 100644 --- a/src/renderers/webgl/WebGLExtensions.js +++ b/src/renderers/webgl/WebGLExtensions.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLExtensions = function WebGLExtensions ( gl ) { +THREE.WebGLExtensions = function WebGLExtensions( gl ) { var extensions = {}; diff --git a/src/renderers/webgl/WebGLGeometries.js b/src/renderers/webgl/WebGLGeometries.js index 4f2149deb44999..0cccd05d1428a9 100644 --- a/src/renderers/webgl/WebGLGeometries.js +++ b/src/renderers/webgl/WebGLGeometries.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLGeometries = function WebGLGeometries ( gl, properties, info ) { +THREE.WebGLGeometries = function WebGLGeometries( gl, properties, info ) { var geometries = {}; diff --git a/src/renderers/webgl/WebGLIndexedBufferRenderer.js b/src/renderers/webgl/WebGLIndexedBufferRenderer.js index 8e49d67d8db57b..70b5f13e189833 100644 --- a/src/renderers/webgl/WebGLIndexedBufferRenderer.js +++ b/src/renderers/webgl/WebGLIndexedBufferRenderer.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLIndexedBufferRenderer = function WebGLIndexedBufferRenderer ( _gl, extensions, _infoRender ) { +THREE.WebGLIndexedBufferRenderer = function WebGLIndexedBufferRenderer( _gl, extensions, _infoRender ) { var mode; diff --git a/src/renderers/webgl/WebGLObjects.js b/src/renderers/webgl/WebGLObjects.js index 75dce0eceb18d5..a3a12e3d711638 100644 --- a/src/renderers/webgl/WebGLObjects.js +++ b/src/renderers/webgl/WebGLObjects.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLObjects = function WebGLObjects ( gl, properties, info ) { +THREE.WebGLObjects = function WebGLObjects( gl, properties, info ) { var geometries = new THREE.WebGLGeometries( gl, properties, info ); diff --git a/src/renderers/webgl/WebGLPrograms.js b/src/renderers/webgl/WebGLPrograms.js index 2eac6eb1bd575a..8ca0b1831bdc17 100644 --- a/src/renderers/webgl/WebGLPrograms.js +++ b/src/renderers/webgl/WebGLPrograms.js @@ -1,4 +1,4 @@ -THREE.WebGLPrograms = function WebGLPrograms ( renderer, capabilities ) { +THREE.WebGLPrograms = function WebGLPrograms( renderer, capabilities ) { var programs = []; diff --git a/src/renderers/webgl/WebGLProperties.js b/src/renderers/webgl/WebGLProperties.js index 35fd638c736eca..4821c0694bd371 100644 --- a/src/renderers/webgl/WebGLProperties.js +++ b/src/renderers/webgl/WebGLProperties.js @@ -2,7 +2,7 @@ * @author fordacious / fordacious.github.io */ -THREE.WebGLProperties = function WebGLProperties () { +THREE.WebGLProperties = function WebGLProperties() { var properties = {}; diff --git a/src/renderers/webgl/WebGLShadowMap.js b/src/renderers/webgl/WebGLShadowMap.js index dd0c398ab3c509..777e0ebeeb2565 100644 --- a/src/renderers/webgl/WebGLShadowMap.js +++ b/src/renderers/webgl/WebGLShadowMap.js @@ -3,7 +3,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLShadowMap = function WebGLShadowMap ( _renderer, _lights, _objects ) { +THREE.WebGLShadowMap = function WebGLShadowMap( _renderer, _lights, _objects ) { var _gl = _renderer.context, _state = _renderer.state, diff --git a/src/renderers/webgl/WebGLState.js b/src/renderers/webgl/WebGLState.js index 96c195884bc5fd..ce2a28e9ec0963 100644 --- a/src/renderers/webgl/WebGLState.js +++ b/src/renderers/webgl/WebGLState.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.WebGLState = function WebGLState ( gl, extensions, paramThreeToGL ) { +THREE.WebGLState = function WebGLState( gl, extensions, paramThreeToGL ) { var _this = this; diff --git a/src/renderers/webgl/plugins/LensFlarePlugin.js b/src/renderers/webgl/plugins/LensFlarePlugin.js index 11fad15643adc3..0577b750570651 100644 --- a/src/renderers/webgl/plugins/LensFlarePlugin.js +++ b/src/renderers/webgl/plugins/LensFlarePlugin.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.LensFlarePlugin = function LensFlarePlugin ( renderer, flares ) { +THREE.LensFlarePlugin = function LensFlarePlugin( renderer, flares ) { var gl = renderer.context; var state = renderer.state; diff --git a/src/renderers/webgl/plugins/SpritePlugin.js b/src/renderers/webgl/plugins/SpritePlugin.js index 598fc78025eff5..d1c8a7b56101eb 100644 --- a/src/renderers/webgl/plugins/SpritePlugin.js +++ b/src/renderers/webgl/plugins/SpritePlugin.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.SpritePlugin = function SpritePlugin ( renderer, sprites ) { +THREE.SpritePlugin = function SpritePlugin( renderer, sprites ) { var gl = renderer.context; var state = renderer.state; diff --git a/src/scenes/Fog.js b/src/scenes/Fog.js index 5150ce1fc4d14a..eabcdffd0a64ac 100644 --- a/src/scenes/Fog.js +++ b/src/scenes/Fog.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.Fog = function Fog ( color, near, far ) { +THREE.Fog = function Fog( color, near, far ) { this.name = ''; diff --git a/src/scenes/FogExp2.js b/src/scenes/FogExp2.js index b2e04e876a7522..8adcd5c17627b5 100644 --- a/src/scenes/FogExp2.js +++ b/src/scenes/FogExp2.js @@ -3,7 +3,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.FogExp2 = function FogExp2 ( color, density ) { +THREE.FogExp2 = function FogExp2( color, density ) { this.name = ''; diff --git a/src/scenes/Scene.js b/src/scenes/Scene.js index 8c124e503d5c10..117765ee90239b 100644 --- a/src/scenes/Scene.js +++ b/src/scenes/Scene.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.Scene = function Scene () { +THREE.Scene = function Scene() { THREE.Object3D.call( this ); diff --git a/src/textures/CanvasTexture.js b/src/textures/CanvasTexture.js index 3d8521c751b663..1bc2319f8f805c 100644 --- a/src/textures/CanvasTexture.js +++ b/src/textures/CanvasTexture.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CanvasTexture = function CanvasTexture ( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { +THREE.CanvasTexture = function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { THREE.Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); diff --git a/src/textures/CompressedTexture.js b/src/textures/CompressedTexture.js index b7cf0ddbb254a9..b332008b8da068 100644 --- a/src/textures/CompressedTexture.js +++ b/src/textures/CompressedTexture.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.CompressedTexture = function CompressedTexture ( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) { +THREE.CompressedTexture = function CompressedTexture( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) { THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); diff --git a/src/textures/CubeTexture.js b/src/textures/CubeTexture.js index 9ce98aaa0d5546..11e1581842b31e 100644 --- a/src/textures/CubeTexture.js +++ b/src/textures/CubeTexture.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.CubeTexture = function CubeTexture ( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { +THREE.CubeTexture = function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { mapping = mapping !== undefined ? mapping : THREE.CubeReflectionMapping; diff --git a/src/textures/DataTexture.js b/src/textures/DataTexture.js index 69be5b171e0654..693f541997e7ef 100644 --- a/src/textures/DataTexture.js +++ b/src/textures/DataTexture.js @@ -2,7 +2,7 @@ * @author alteredq / http://alteredqualia.com/ */ -THREE.DataTexture = function DataTexture ( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) { +THREE.DataTexture = function DataTexture( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) { THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ); diff --git a/src/textures/Texture.js b/src/textures/Texture.js index 40169197e3335a..7e60db290227dd 100644 --- a/src/textures/Texture.js +++ b/src/textures/Texture.js @@ -4,7 +4,7 @@ * @author szimek / https://github.com/szimek/ */ -THREE.Texture = function Texture ( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { +THREE.Texture = function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { Object.defineProperty( this, 'id', { value: THREE.TextureIdCount ++ } ); diff --git a/src/textures/VideoTexture.js b/src/textures/VideoTexture.js index a076d570bce95b..486ac45fe8b60e 100644 --- a/src/textures/VideoTexture.js +++ b/src/textures/VideoTexture.js @@ -2,7 +2,7 @@ * @author mrdoob / http://mrdoob.com/ */ -THREE.VideoTexture = function VideoTexture ( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { +THREE.VideoTexture = function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) { THREE.Texture.call( this, video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );