softbox 4.16.0 → 4.17.0

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/index.d.cts CHANGED
@@ -171,6 +171,13 @@ export declare interface DirectionalLightOptions {
171
171
  };
172
172
  /** Depth offset against shadow acne (self-shadowing stripes). */
173
173
  bias?: number;
174
+ /**
175
+ * WORLD-SPACE offset along the receiver's normal against shadow acne.
176
+ * Unlike `bias` (normalized depth, whose world effect scales with the
177
+ * fitted camera range), this is absolute — the scale-correct escape hatch
178
+ * if acne ever shows on a model's own surfaces.
179
+ */
180
+ normalBias?: number;
174
181
  /** Shadow edge blur in shadow-map texels. */
175
182
  radius?: number;
176
183
  };
package/dist/index.d.ts CHANGED
@@ -171,6 +171,13 @@ export declare interface DirectionalLightOptions {
171
171
  };
172
172
  /** Depth offset against shadow acne (self-shadowing stripes). */
173
173
  bias?: number;
174
+ /**
175
+ * WORLD-SPACE offset along the receiver's normal against shadow acne.
176
+ * Unlike `bias` (normalized depth, whose world effect scales with the
177
+ * fitted camera range), this is absolute — the scale-correct escape hatch
178
+ * if acne ever shows on a model's own surfaces.
179
+ */
180
+ normalBias?: number;
174
181
  /** Shadow edge blur in shadow-map texels. */
175
182
  radius?: number;
176
183
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-CAut-lTo.cjs");exports.ControlType=e.ControlType;exports.ErrorCode=e.ErrorCode;exports.Hotspot=e.Hotspot;exports.SimpleViewer=e.SimpleViewerWrapper;exports.ThreeViewerError=e.ThreeViewerError;exports.TypedEventEmitter=e.TypedEventEmitter;exports.VIEWER_PRESETS=e.VIEWER_PRESETS;exports.defaultOptions=e.defaultOptions;exports.resolvePreset=e.resolvePreset;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BlwMVqol.cjs");exports.ControlType=e.ControlType;exports.ErrorCode=e.ErrorCode;exports.Hotspot=e.Hotspot;exports.SimpleViewer=e.SimpleViewerWrapper;exports.ThreeViewerError=e.ThreeViewerError;exports.TypedEventEmitter=e.TypedEventEmitter;exports.VIEWER_PRESETS=e.VIEWER_PRESETS;exports.defaultOptions=e.defaultOptions;exports.resolvePreset=e.resolvePreset;
@@ -1,4 +1,4 @@
1
- import { f as s, E as o, H as a, h as t, e as E, T as i, V as p, i as T, r as l } from "./index-BLxByrSR.js";
1
+ import { f as s, E as o, H as a, h as t, e as E, T as i, V as p, i as T, r as l } from "./index-1jWUObtn.js";
2
2
  export {
3
3
  s as ControlType,
4
4
  o as ErrorCode,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "softbox",
3
3
  "private": false,
4
- "version": "4.16.0",
4
+ "version": "4.17.0",
5
5
  "homepage": "https://leming.github.io/softbox/",
6
6
  "type": "module",
7
7
  "description": "Batteries-included React 3D viewer — any GLB looks studio-shot in one line",