@archvisioninc/canvas 2.4.8 → 2.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -274,7 +274,9 @@ export const updateMaterial = inboundData => {
|
|
|
274
274
|
material.transparencyType = _.toLower(transparencyType);
|
|
275
275
|
}
|
|
276
276
|
const isComplex = _.toLower(material.transparencyType) === TRANSPARENCY_MODES.complex;
|
|
277
|
-
material.subSurface
|
|
277
|
+
if (material.subSurface) {
|
|
278
|
+
material.subSurface.isRefractionEnabled = isComplex;
|
|
279
|
+
}
|
|
278
280
|
if (isComplex) {
|
|
279
281
|
if (sssRefractionIntensity !== undefined) material.subSurface.refractionIntensity = sssRefractionIntensity ?? 1;
|
|
280
282
|
if (sssIOR !== undefined) material.subSurface.indexOfRefraction = sssIOR ?? 1.52;
|
package/package.json
CHANGED
|
@@ -314,7 +314,10 @@ export const updateMaterial = inboundData => {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
const isComplex = _.toLower(material.transparencyType) === TRANSPARENCY_MODES.complex;
|
|
317
|
-
|
|
317
|
+
|
|
318
|
+
if (material.subSurface) {
|
|
319
|
+
material.subSurface.isRefractionEnabled = isComplex;
|
|
320
|
+
}
|
|
318
321
|
|
|
319
322
|
if (isComplex) {
|
|
320
323
|
if (sssRefractionIntensity !== undefined) material.subSurface.refractionIntensity = sssRefractionIntensity ?? 1;
|