@shapediver/viewer.rendering-engine.light-engine
Advanced tools
Comparing version 1.6.6 to 1.6.7
@@ -148,4 +148,7 @@ "use strict"; | ||
const lightScene = new LightScene_1.LightScene({ id: lightSceneId, name: properties.name }); | ||
if (properties.standard === true) | ||
lightScene.addLight(new DirectionalLight_1.DirectionalLight({ color: '#ffffff', intensity: 1, direction: gl_matrix_1.vec3.fromValues(.5774, -.5774, .5774), castShadow: true, name: 'directional0' })); | ||
if (properties.standard === true) { | ||
lightScene.addLight(new AmbientLight_1.AmbientLight({ color: '#ffffff', intensity: 0.5, name: 'ambient0' })); | ||
lightScene.addLight(new DirectionalLight_1.DirectionalLight({ color: '#ffffff', intensity: 0.75, direction: gl_matrix_1.vec3.fromValues(.5774, -.5774, .5774), castShadow: true, name: 'directional0' })); | ||
lightScene.addLight(new DirectionalLight_1.DirectionalLight({ color: '#ffffff', intensity: 0.35, direction: gl_matrix_1.vec3.fromValues(.25, -1, 1), castShadow: false, name: 'directional1' })); | ||
} | ||
this._lightScenes[lightSceneId] = lightScene; | ||
@@ -152,0 +155,0 @@ this._lightScene = lightScene; |
{ | ||
"name": "@shapediver/viewer.rendering-engine.light-engine", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"description": "", | ||
@@ -40,9 +40,9 @@ "keywords": [], | ||
"@shapediver/viewer.settings": "*", | ||
"@shapediver/viewer.shared.node-tree": "^1.6.6", | ||
"@shapediver/viewer.shared.services": "^1.6.6", | ||
"@shapediver/viewer.shared.types": "^1.6.6", | ||
"@shapediver/viewer.shared.node-tree": "^1.6.7", | ||
"@shapediver/viewer.shared.services": "^1.6.7", | ||
"@shapediver/viewer.shared.types": "^1.6.7", | ||
"gl-matrix": "3.3.0", | ||
"tsyringe": "^4.5.0" | ||
}, | ||
"gitHead": "c609455a59e94ede70b624764205ac14ae95004d" | ||
"gitHead": "c3e17bdce9688d96ef169b3fd8d15e222571acc8" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81873
1031