@selvajs/visualization 1.7.1-beta.1 → 1.8.0-beta.2
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/dist/render.cjs +5 -1
- package/dist/render.cjs.map +1 -1
- package/dist/render.d.cts +5 -1
- package/dist/render.d.ts +5 -1
- package/dist/render.js +5 -1
- package/dist/render.js.map +1 -1
- package/package.json +1 -1
package/dist/render.cjs
CHANGED
|
@@ -347,7 +347,7 @@ function applyDefaults(options) {
|
|
|
347
347
|
hemisphereIntensity: options.lighting?.hemisphereIntensity ?? preset.hemisphereIntensity
|
|
348
348
|
},
|
|
349
349
|
environment: {
|
|
350
|
-
hdrPath: options.environment?.hdrPath || "/baseHDR.hdr",
|
|
350
|
+
hdrPath: options.environment?.hdrPath === false ? false : options.environment?.hdrPath || "/baseHDR.hdr",
|
|
351
351
|
backgroundColor: options.environment?.backgroundColor || new three.Color(15790320),
|
|
352
352
|
enableEnvironmentLighting: options.environment?.enableEnvironmentLighting ?? true,
|
|
353
353
|
sceneUp: options.environment?.sceneUp || defaultUp,
|
|
@@ -3747,6 +3747,10 @@ function setupControls(camera, canvas, config) {
|
|
|
3747
3747
|
function setupEnvironment(scene, renderer, config, isDisposed) {
|
|
3748
3748
|
if (config.environment.enableEnvironmentLighting) {
|
|
3749
3749
|
createReflectionEnvironment(scene, renderer, environmentRotationFor(config.environment.sceneUp ?? defaultUp));
|
|
3750
|
+
if (config.environment.hdrPath === false) {
|
|
3751
|
+
config.events.onReady?.();
|
|
3752
|
+
return;
|
|
3753
|
+
}
|
|
3750
3754
|
new three_addons_loaders_HDRLoader_js.HDRLoader().load(config.environment.hdrPath || "/baseHDR.hdr", function(envMap) {
|
|
3751
3755
|
if (isDisposed()) {
|
|
3752
3756
|
envMap.dispose();
|