unstale

npm / @paper-design/shaders

@paper-design/shaders

What changed in @paper-design/shaders 0.0, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.

7 breaking7 new APIs and options7 performance3 behavior and defaults1 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

@paper-design/shaders 0.025 changes

Breaking changes 7

  • The old colorFront parameter is replaced by the three-color scheme using colorShadow, colorPaper, and colorBack.

    0.0.81release notes

  • The Paper Texture color scheme now uses colorShadow, colorPaper, and colorBack instead of colorFront and colorBack.

    0.0.81release notes

  • The contrast parameter is removed; a similar effect can be achieved with the new color scheme and blending.

    0.0.81release notes

  • The former folds pattern is now named crumples, with foldCount renamed crumpleCount.

    0.0.81release notes

  • The fade parameter is removed; a similar effect can be achieved with angle.

    0.0.81release notes

  • The former crumples pattern is now named wrinkles, with crumpleSize renamed wrinkleSize.

    0.0.81release notes

  • The Lens Distortion noiseOffset parameter is now normalized and accepts values from 0 to 1.

    0.0.80release notes

New APIs and options 7

  • Adds control over the direction the surface is lit from.

    0.0.81release notes

  • Adds an amount of image-to-paper blending.

    0.0.81release notes

  • Adds an option to cut the paper sheet to the image frame.

    0.0.81release notes

  • Adds control over how much the image bends with the paper surface.

    0.0.81release notes

  • A new pattern adds straight vertical and horizontal fold lines, controlled by foldSizeX, foldSizeY, foldOffsetX, and foldOffsetY.

    0.0.81release notes

  • Adds an option to line the grain up into laid-paper stripes.

    0.0.81release notes

  • Adds control over the scale of the roughness grain.

    0.0.81release notes

Performance 7

  • Animated shaders no longer render twice per frame.

    0.0.82release notes

  • WebGL context attributes were cleaned up as part of performance optimizations in ShaderMount.

    0.0.82release notes

  • Rebuilt to assure better performance.

    0.0.81release notes

  • Rebuilt to assure better performance.

    0.0.81release notes

  • Performance improves for all shaders with a grain layer.

    0.0.81release notes

  • Rebuilt to assure better performance.

    0.0.81release notes

  • Rebuilt to assure better performance.

    0.0.81release notes

Behavior and default changes 3

Fixes and other changes 1

  • The WebGL context is released when a shader is disposed.

    0.0.82release notes