@laplace.live/persona-sdk 1.11.0 → 1.11.1

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.
@@ -35,6 +35,8 @@ export declare function sceneLightIsAimed(type: SceneLightType): boolean;
35
35
  export declare function sceneLightCastsShadows(type: SceneLightType): boolean;
36
36
  /** Whether a light of `type` can light volumetric haze; directional and ambient lights never do. */
37
37
  export declare function sceneLightCanHaze(type: SceneLightType): boolean;
38
+ /** Whether `light` lights volumetric haze now: switched on, opted in, and of a type that can. */
39
+ export declare function sceneLightHazes(light: Pick<SceneLight, 'type' | 'enabled' | 'volumetric'>): boolean;
38
40
  export declare const LIVE2D_SCALE_MIN = 0.1;
39
41
  export declare const LIVE2D_SCALE_MAX = 24;
40
42
  export declare const VRM_SCALE_MIN = 0.05;
@@ -59,6 +59,10 @@ export function sceneLightCastsShadows(type) {
59
59
  export function sceneLightCanHaze(type) {
60
60
  return type === 'point' || type === 'spot' || type === 'area';
61
61
  }
62
+ /** Whether `light` lights volumetric haze now: switched on, opted in, and of a type that can. */
63
+ export function sceneLightHazes(light) {
64
+ return light.enabled !== false && light.volumetric === true && sceneLightCanHaze(light.type);
65
+ }
62
66
  // Live2D bounds are the zoom clamp (zoom.ts re-exports these); VRM scales a world-space root.
63
67
  export const LIVE2D_SCALE_MIN = 0.1;
64
68
  export const LIVE2D_SCALE_MAX = 24;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/persona-sdk",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "TypeScript SDK and wire schema for the LAPLACE Persona plugin API",
5
5
  "license": "MIT",
6
6
  "type": "module",