@hology/webgpu-renderer 0.1.9 → 0.1.10

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.ts CHANGED
@@ -281,7 +281,7 @@ type RendererExtractedLightState = ExtractedLightState;
281
281
  * without mutating the scene's material slots. Return `undefined` to use the
282
282
  * renderer fallback material, or `null` to intentionally skip the draw.
283
283
  */
284
- type RendererMaterialResolver = (material: Material, pass?: 'opaque' | 'late') => WGSLShaderMaterial | null | undefined;
284
+ type RendererMaterialResolver = (material: Material, pass?: 'opaque' | 'late' | 'outline') => WGSLShaderMaterial | null | undefined;
285
285
  interface RendererOptions {
286
286
  canvas: HTMLCanvasElement;
287
287
  /** Linear-sRGB clear color. Presentation converts it to display sRGB. */
@@ -778,6 +778,10 @@ type ToonOutlineParameters = {
778
778
  thickness?: number;
779
779
  /** Linear RGB outline color. Defaults to black. */
780
780
  color?: readonly [number, number, number] | readonly number[];
781
+ /** Outline color source. Missing values preserve the legacy fixed-color behavior. */
782
+ colorMode?: "fixed" | "darkenedAlbedo";
783
+ /** Linear albedo darkening from 0 (unchanged) to 1 (black). Defaults to 0.65. */
784
+ darkening?: number;
781
785
  /** Defaults to the source material's opacity. */
782
786
  alpha?: number;
783
787
  /** Set to false to suppress the otherwise enabled outline. */