x3d-image 2.4.13 → 2.4.14
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.
- package/package.json +3 -3
- package/src/image.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x3d-image",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.14",
|
|
4
4
|
"description": "Render image files from X3D",
|
|
5
5
|
"main": "src/main.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"colors": "^1.4.0",
|
|
59
|
-
"electron": "^39.2.
|
|
60
|
-
"x_ite": "^12.
|
|
59
|
+
"electron": "^39.2.6",
|
|
60
|
+
"x_ite": "^12.2.0",
|
|
61
61
|
"yargs": "^18.0.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
package/src/image.js
CHANGED
|
@@ -421,6 +421,7 @@ async function addEnvironmentLight (browser, scene, name)
|
|
|
421
421
|
|
|
422
422
|
const specularTexture = scene .createNode ("ImageCubeMapTexture")
|
|
423
423
|
|
|
424
|
+
environmentLight .global = true;
|
|
424
425
|
environmentLight .intensity = 1;
|
|
425
426
|
environmentLight .color = new X3D .SFColor (1, 1, 1);
|
|
426
427
|
environmentLight .specularTexture = specularTexture;
|