|
@@ -44,6 +44,8 @@ import { Color } from '../math/Color.js';
|
|
|
* envMap: new THREE.CubeTexture( [posx, negx, posy, negy, posz, negz] ),
|
|
|
* envMapIntensity: <float>
|
|
|
*
|
|
|
+ * energyPreservation: <bool>,
|
|
|
+ *
|
|
|
* refractionRatio: <float>,
|
|
|
*
|
|
|
* wireframe: <boolean>,
|
|
@@ -99,6 +101,8 @@ function MeshStandardMaterial( parameters ) {
|
|
|
this.envMap = null;
|
|
|
this.envMapIntensity = 1.0;
|
|
|
|
|
|
+ this.energyPreservation = true;
|
|
|
+
|
|
|
this.refractionRatio = 0.98;
|
|
|
|
|
|
this.wireframe = false;
|
|
@@ -161,6 +165,8 @@ MeshStandardMaterial.prototype.copy = function ( source ) {
|
|
|
this.envMap = source.envMap;
|
|
|
this.envMapIntensity = source.envMapIntensity;
|
|
|
|
|
|
+ this.energyPreservation = source.energyPreservation;
|
|
|
+
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|