|
|
@@ -6312,7 +6312,7 @@ function createColorManagement() {
|
|
|
* - luminanceCoefficients: RGB luminance coefficients
|
|
|
*
|
|
|
* Optional:
|
|
|
- * - outputColorSpaceConfig: { drawingBufferColorSpace: ColorSpace }
|
|
|
+ * - outputColorSpaceConfig: { drawingBufferColorSpace: ColorSpace, toneMappingMode: 'extended' | 'standard' }
|
|
|
* - workingColorSpaceConfig: { unpackColorSpace: ColorSpace }
|
|
|
*
|
|
|
* Reference:
|
|
|
@@ -6381,6 +6381,12 @@ function createColorManagement() {
|
|
|
|
|
|
},
|
|
|
|
|
|
+ getToneMappingMode: function ( colorSpace ) {
|
|
|
+
|
|
|
+ return this.spaces[ colorSpace ].outputColorSpaceConfig.toneMappingMode || 'standard';
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
getLuminanceCoefficients: function ( target, colorSpace = this.workingColorSpace ) {
|
|
|
|
|
|
return target.fromArray( this.spaces[ colorSpace ].luminanceCoefficients );
|
|
|
@@ -16912,6 +16918,18 @@ class Material extends EventDispatcher {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( this.sheenColorMap && this.sheenColorMap.isTexture ) {
|
|
|
+
|
|
|
+ data.sheenColorMap = this.sheenColorMap.toJSON( meta ).uuid;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ if ( this.sheenRoughnessMap && this.sheenRoughnessMap.isTexture ) {
|
|
|
+
|
|
|
+ data.sheenRoughnessMap = this.sheenRoughnessMap.toJSON( meta ).uuid;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( this.dispersion !== undefined ) data.dispersion = this.dispersion;
|
|
|
|
|
|
if ( this.iridescence !== undefined ) data.iridescence = this.iridescence;
|