@laplace.live/persona-sdk 0.5.0 → 0.6.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.
Files changed (2) hide show
  1. package/dist/types.d.ts +27 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -345,6 +345,32 @@ export interface ScenePixelate {
345
345
  enabled: boolean;
346
346
  granularity: number;
347
347
  }
348
+ /** Rain droplets running down a glass pane in front of the frame, refracting it. */
349
+ export interface SceneDroplets {
350
+ enabled: boolean;
351
+ /** How much rain falls, from a light drizzle to a downpour (0 to 1.25). */
352
+ intensity: number;
353
+ /** Animation speed multiplier. */
354
+ speed: number;
355
+ /** Size of the droplet pattern. Higher means smaller drops. */
356
+ scale: number;
357
+ /** Width of the droplets and their trails. */
358
+ dropWidth: number;
359
+ /** How elongated the falling droplets are. */
360
+ dropLength: number;
361
+ /** How strongly droplets refract the frame behind them. */
362
+ refraction: number;
363
+ /** How fast the running drops slide down. */
364
+ fallSpeed: number;
365
+ /** Fall direction in degrees: 0 falls down, ±90 sideways, ±180 up. */
366
+ direction: number;
367
+ /** Horizontal wiggle of the running drops. */
368
+ wiggle: number;
369
+ /** Multiplier for the small static droplets. */
370
+ staticDrops: number;
371
+ /** Specular glint on drops where the frame is transparent, so rain reads over the desktop (0 to 1). */
372
+ glints: number;
373
+ }
348
374
  /**
349
375
  * Post-processing over the rendered 3D frame. Everything off skips the effect
350
376
  * chain entirely. Deliberately flat: every toggle-plus-numbers effect sits at
@@ -364,6 +390,7 @@ export interface SceneEffects {
364
390
  dof: SceneDepthOfField;
365
391
  pixelate: ScenePixelate;
366
392
  glitch: SceneGlitch;
393
+ droplets: SceneDroplets;
367
394
  }
368
395
  /**
369
396
  * Image-based lighting for the 3D stage: an environment map, whether to show it
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@laplace.live/persona-sdk",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "TypeScript SDK and wire schema for the LAPLACE Persona plugin API",
5
5
  "license": "MIT",
6
6
  "type": "module",