|
|
@@ -28362,7 +28362,7 @@ class BatchedMesh extends Mesh {
|
|
|
* Sets the given color to the defined instance.
|
|
|
*
|
|
|
* @param {number} instanceId - The ID of an instance to set the color of.
|
|
|
- * @param {Color} color - The color to set the instance to.
|
|
|
+ * @param {Color|Vector4} color - The color to set the instance to. Use a `Vector4` to also define alpha.
|
|
|
* @return {BatchedMesh} A reference to this batched mesh.
|
|
|
*/
|
|
|
setColorAt( instanceId, color ) {
|
|
|
@@ -28386,8 +28386,8 @@ class BatchedMesh extends Mesh {
|
|
|
* Returns the color of the defined instance.
|
|
|
*
|
|
|
* @param {number} instanceId - The ID of an instance to get the color of.
|
|
|
- * @param {Color} color - The target object that is used to store the method's result.
|
|
|
- * @return {Color} The instance's color.
|
|
|
+ * @param {Color|Vector4} color - The target object that is used to store the method's result.
|
|
|
+ * @return {Color|Vector4} The instance's color. Use a `Vector4` to also retrieve alpha.
|
|
|
*/
|
|
|
getColorAt( instanceId, color ) {
|
|
|
|
|
|
@@ -39730,6 +39730,14 @@ class MeshPhongMaterial extends Material {
|
|
|
*/
|
|
|
this.reflectivity = 1;
|
|
|
|
|
|
+ /**
|
|
|
+ * Scales the effect of the environment map by multiplying its color.
|
|
|
+ *
|
|
|
+ * @type {number}
|
|
|
+ * @default 1
|
|
|
+ */
|
|
|
+ this.envMapIntensity = 1.0;
|
|
|
+
|
|
|
/**
|
|
|
* The index of refraction (IOR) of air (approximately 1) divided by the
|
|
|
* index of refraction of the material. It is used with environment mapping
|
|
|
@@ -39838,6 +39846,7 @@ class MeshPhongMaterial extends Material {
|
|
|
this.envMapRotation.copy( source.envMapRotation );
|
|
|
this.combine = source.combine;
|
|
|
this.reflectivity = source.reflectivity;
|
|
|
+ this.envMapIntensity = source.envMapIntensity;
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|
|
|
@@ -40603,6 +40612,14 @@ class MeshLambertMaterial extends Material {
|
|
|
*/
|
|
|
this.reflectivity = 1;
|
|
|
|
|
|
+ /**
|
|
|
+ * Scales the effect of the environment map by multiplying its color.
|
|
|
+ *
|
|
|
+ * @type {number}
|
|
|
+ * @default 1
|
|
|
+ */
|
|
|
+ this.envMapIntensity = 1.0;
|
|
|
+
|
|
|
/**
|
|
|
* The index of refraction (IOR) of air (approximately 1) divided by the
|
|
|
* index of refraction of the material. It is used with environment mapping
|
|
|
@@ -40709,6 +40726,7 @@ class MeshLambertMaterial extends Material {
|
|
|
this.envMapRotation.copy( source.envMapRotation );
|
|
|
this.combine = source.combine;
|
|
|
this.reflectivity = source.reflectivity;
|
|
|
+ this.envMapIntensity = source.envMapIntensity;
|
|
|
this.refractionRatio = source.refractionRatio;
|
|
|
|
|
|
this.wireframe = source.wireframe;
|