|
@@ -4,7 +4,6 @@
|
|
*
|
|
*
|
|
* parameters = {
|
|
* parameters = {
|
|
* color: <hex>,
|
|
* color: <hex>,
|
|
- * emissive: <hex>,
|
|
|
|
* specular: <hex>,
|
|
* specular: <hex>,
|
|
* shininess: <float>,
|
|
* shininess: <float>,
|
|
* opacity: <float>,
|
|
* opacity: <float>,
|
|
@@ -17,8 +16,9 @@
|
|
* aoMap: new THREE.Texture( <Image> ),
|
|
* aoMap: new THREE.Texture( <Image> ),
|
|
* aoMapIntensity: <float>
|
|
* aoMapIntensity: <float>
|
|
*
|
|
*
|
|
|
|
+ * emissive: <hex>,
|
|
|
|
+ * emissiveIntensity: <float>
|
|
* emissiveMap: new THREE.Texture( <Image> ),
|
|
* emissiveMap: new THREE.Texture( <Image> ),
|
|
- * emissiveMapIntensity: <float>
|
|
|
|
*
|
|
*
|
|
* bumpMap: new THREE.Texture( <Image> ),
|
|
* bumpMap: new THREE.Texture( <Image> ),
|
|
* bumpScale: <float>,
|
|
* bumpScale: <float>,
|
|
@@ -64,7 +64,6 @@ THREE.MeshPhongMaterial = function ( parameters ) {
|
|
this.type = 'MeshPhongMaterial';
|
|
this.type = 'MeshPhongMaterial';
|
|
|
|
|
|
this.color = new THREE.Color( 0xffffff ); // diffuse
|
|
this.color = new THREE.Color( 0xffffff ); // diffuse
|
|
- this.emissive = new THREE.Color( 0x000000 );
|
|
|
|
this.specular = new THREE.Color( 0x111111 );
|
|
this.specular = new THREE.Color( 0x111111 );
|
|
this.shininess = 30;
|
|
this.shininess = 30;
|
|
|
|
|
|
@@ -76,8 +75,9 @@ THREE.MeshPhongMaterial = function ( parameters ) {
|
|
this.aoMap = null;
|
|
this.aoMap = null;
|
|
this.aoMapIntensity = 1.0;
|
|
this.aoMapIntensity = 1.0;
|
|
|
|
|
|
|
|
+ this.emissive = new THREE.Color( 0x000000 );
|
|
|
|
+ this.emissiveIntensity = 1.0;
|
|
this.emissiveMap = null;
|
|
this.emissiveMap = null;
|
|
- this.emissiveMapIntensity = 1.0;
|
|
|
|
|
|
|
|
this.bumpMap = null;
|
|
this.bumpMap = null;
|
|
this.bumpScale = 1;
|
|
this.bumpScale = 1;
|
|
@@ -125,7 +125,6 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
THREE.Material.prototype.copy.call( this, source );
|
|
THREE.Material.prototype.copy.call( this, source );
|
|
|
|
|
|
this.color.copy( source.color );
|
|
this.color.copy( source.color );
|
|
- this.emissive.copy( source.emissive );
|
|
|
|
this.specular.copy( source.specular );
|
|
this.specular.copy( source.specular );
|
|
this.shininess = source.shininess;
|
|
this.shininess = source.shininess;
|
|
|
|
|
|
@@ -137,8 +136,9 @@ THREE.MeshPhongMaterial.prototype.copy = function ( source ) {
|
|
this.aoMap = source.aoMap;
|
|
this.aoMap = source.aoMap;
|
|
this.aoMapIntensity = source.aoMapIntensity;
|
|
this.aoMapIntensity = source.aoMapIntensity;
|
|
|
|
|
|
|
|
+ this.emissive.copy( source.emissive );
|
|
this.emissiveMap = source.emissiveMap;
|
|
this.emissiveMap = source.emissiveMap;
|
|
- this.emissiveMapIntensity = source.emissiveMapIntensity;
|
|
|
|
|
|
+ this.emissiveIntensity = source.emissiveIntensity;
|
|
|
|
|
|
this.bumpMap = source.bumpMap;
|
|
this.bumpMap = source.bumpMap;
|
|
this.bumpScale = source.bumpScale;
|
|
this.bumpScale = source.bumpScale;
|