@archvisioninc/canvas 2.5.4 → 2.5.6

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.
@@ -233,7 +233,9 @@ export const updateMaterial = inboundData => {
233
233
  }
234
234
 
235
235
  // Normal/Bump
236
- if (bumpIntensity !== undefined && material?.bumpTexture) material.bumpTexture.level = bumpIntensity;
236
+ if (bumpIntensity !== undefined) {
237
+ material.bumpTexture.level = bumpIntensity;
238
+ }
237
239
  if (!_.isEmpty(bumpTexture)) {
238
240
  material.bumpTexture = newTexture(bumpTexture.src);
239
241
  material.bumpTexture.name = bumpTexture.name;
@@ -709,7 +711,7 @@ export const updateEnvironment = inboundData => {
709
711
  // Blur
710
712
  if (envBlur !== undefined) {
711
713
  skyBox.microSurface = 1 - envBlur;
712
- newMetaDataEntry('environmentIntensity', envBlur);
714
+ newMetaDataEntry('environmentBlur', envBlur);
713
715
  }
714
716
 
715
717
  // Update environment texture.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@archvisioninc/canvas",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "private": false,
5
5
  "main": "dist/Canvas.js",
6
6
  "module": "dist/Canvas.js",
@@ -266,7 +266,10 @@ export const updateMaterial = inboundData => {
266
266
  }
267
267
 
268
268
  // Normal/Bump
269
- if (bumpIntensity !== undefined && material?.bumpTexture) material.bumpTexture.level = bumpIntensity;
269
+ if (bumpIntensity !== undefined) {
270
+ material.bumpTexture.level = bumpIntensity;
271
+ }
272
+
270
273
  if (!_.isEmpty(bumpTexture)) {
271
274
  material.bumpTexture = newTexture(bumpTexture.src);
272
275
  material.bumpTexture.name = bumpTexture.name;
@@ -694,7 +697,7 @@ export const updateEnvironment = inboundData => {
694
697
  // Blur
695
698
  if (envBlur !== undefined) {
696
699
  skyBox.microSurface = 1 - envBlur;
697
- newMetaDataEntry('environmentIntensity', envBlur);
700
+ newMetaDataEntry('environmentBlur', envBlur);
698
701
  }
699
702
 
700
703
  // Update environment texture.