mirror of
https://github.com/wahyd4/three.js.git
synced 2026-08-20 10:25:56 +10:00
- Clean up
This commit is contained in:
+2
-1
@@ -4,9 +4,10 @@
|
||||
|
||||
THREE.Line = function ( geometry, material ) {
|
||||
|
||||
THREE.Object3D.call( this, material );
|
||||
THREE.Object3D.call( this );
|
||||
|
||||
this.geometry = geometry;
|
||||
this.material = material instanceof Array ? material : [ material ];
|
||||
|
||||
};
|
||||
|
||||
|
||||
+2
-1
@@ -4,9 +4,10 @@
|
||||
|
||||
THREE.Mesh = function ( geometry, material ) {
|
||||
|
||||
THREE.Object3D.call( this, material );
|
||||
THREE.Object3D.call( this );
|
||||
|
||||
this.geometry = geometry;
|
||||
this.material = material instanceof Array ? material : [ material ];
|
||||
|
||||
this.flipSided = false;
|
||||
this.doubleSided = false;
|
||||
|
||||
@@ -11,8 +11,6 @@ THREE.Object3D = function ( material ) {
|
||||
this.matrix = new THREE.Matrix4();
|
||||
this.screen = new THREE.Vector3();
|
||||
|
||||
this.material = material instanceof Array ? material : [ material ];
|
||||
|
||||
this.autoUpdateMatrix = true;
|
||||
|
||||
this.updateMatrix = function () {
|
||||
|
||||
@@ -4,8 +4,9 @@
|
||||
|
||||
THREE.Particle = function ( material ) {
|
||||
|
||||
THREE.Object3D.call( this, material );
|
||||
THREE.Object3D.call( this );
|
||||
|
||||
this.material = material instanceof Array ? material : [ material ];
|
||||
this.autoUpdateMatrix = false;
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user