|
|
@@ -189,9 +189,9 @@ const getIBLVolumeRefraction = /*@__PURE__*/ Fn( ( [ n, v, roughness, diffuseCol
|
|
|
|
|
|
// XYZ to linear-sRGB color space
|
|
|
const XYZ_TO_REC709 = /*@__PURE__*/ mat3(
|
|
|
- 3.2404542, - 0.9692660, 0.0556434,
|
|
|
- - 1.5371385, 1.8760108, - 0.2040259,
|
|
|
- - 0.4985314, 0.0415560, 1.0572252
|
|
|
+ 3.2404542, - 1.5371385, - 0.4985314,
|
|
|
+ - 0.9692660, 1.8760108, 0.0415560,
|
|
|
+ 0.0556434, - 0.2040259, 1.0572252
|
|
|
);
|
|
|
|
|
|
// Assume air interface for top
|
|
|
@@ -457,14 +457,6 @@ class PhysicalLightingModel extends LightingModel {
|
|
|
*/
|
|
|
this.iridescenceFresnel = null;
|
|
|
|
|
|
- /**
|
|
|
- * The iridescence F0.
|
|
|
- *
|
|
|
- * @type {?Node}
|
|
|
- * @default null
|
|
|
- */
|
|
|
- this.iridescenceF0 = null;
|
|
|
-
|
|
|
/**
|
|
|
* The iridescence F0 dielectric.
|
|
|
*
|
|
|
@@ -531,8 +523,6 @@ class PhysicalLightingModel extends LightingModel {
|
|
|
this.iridescenceF0Dielectric = Schlick_to_F0( { f: iridescenceFresnelDielectric, f90: 1.0, dotVH: dotNVi } );
|
|
|
this.iridescenceF0Metallic = Schlick_to_F0( { f: iridescenceFresnelMetallic, f90: 1.0, dotVH: dotNVi } );
|
|
|
|
|
|
- this.iridescenceF0 = mix( this.iridescenceF0Dielectric, this.iridescenceF0Metallic, metalness );
|
|
|
-
|
|
|
}
|
|
|
|
|
|
if ( this.transmission === true ) {
|