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-11-14.
20 breaking18 new APIs and options12 performance22 behavior and defaults25 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@paper-design/shaders 0.097 changes
Breaking changes 20
The old colorFront parameter is replaced by the three-color scheme using colorShadow, colorPaper, and colorBack.
The Paper Texture color scheme now uses colorShadow, colorPaper, and colorBack instead of colorFront and colorBack.
The contrast parameter is removed; a similar effect can be achieved with the new color scheme and blending.
The former folds pattern is now named crumples, with foldCount renamed crumpleCount.
The fade parameter is removed; a similar effect can be achieved with angle.
The former crumples pattern is now named wrinkles, with crumpleSize renamed wrinkleSize.
The Lens Distortion noiseOffset parameter is now normalized and accepts values from 0 to 1.
The animation loop pauses while a shader is out of the viewport.
The default color changed from black to gray.
Flood parameters now affect transparent areas.
The default scale parameter is now 1.
Mesh Gradient, Static Mesh Gradient, and Static Radial Gradient use monochrome grainOverlay noise.
Renamed the boolean straight prop to grid, which accepts 'hex' or 'square' and defaults to 'hex'.
The
blurparameter now affects only the inside of the image.The transparency of
colorHighlightnow multiplies together with thehighlightsvalue.Blur now also naturally softens the edges of the image.
Distortion is no longer restricted to the image boundaries.
The Fluted Glass parameter
edgeswas renamed tostretch.The angle now goes clockwise instead of counterclockwise.
The angle now goes clockwise instead of counterclockwise.
New APIs and options 18
Adds control over the direction the surface is lit from.
Adds an amount of image-to-paper blending.
Adds an option to cut the paper sheet to the image frame.
Adds control over how much the image bends with the paper surface.
A new pattern adds straight vertical and horizontal fold lines, controlled by foldSizeX, foldSizeY, foldOffsetX, and foldOffsetY.
Adds an option to line the grain up into laid-paper stripes.
Adds control over the scale of the roughness grain.
A new Lens Distortion shader is available.
Every package now ships a NOTICE file.
Gem Smoke adds a set of generic shapes.
Adds the Gem Smoke shader.
Image Dithering adds an inverted option.
A new shader is available.
Adds the Halftone Dots shader.
Added an
edgesparameter to control distortion and blur around image edges.A new Fluted Glass parameter is available.
Liquid Metal adds an angle parameter.
The reworked Liquid Metal version supports custom images.
Performance 12
Animated shaders no longer render twice per frame.
WebGL context attributes were cleaned up as part of performance optimizations in ShaderMount.
Performance improves for all shaders with a grain layer.
Rebuilt to assure better performance.
Minor performance improvements were made to DotOrbit.
Minor performance improvements were made to FlutedGlass.
Minor performance improvements were made to GrainGradient.
Minor performance improvements were made to HalftoneDots.
Minor performance improvements were made to PerlinNoise.
Minor performance improvements were made to SmokeRing.
Several performance improvements were made.
Liquid Metal rendering speed increased 3x.
Behavior and default changes 22
The alpha value of colorHighlight is now applied to highlights in Water.
fiberSize has a new mapping.
wrinkleSize has a new mapping.
React components re-render when a new prop is added.
Presets were adjusted; the notes do not specify which presets or how they changed.
The Gem Smoke preset was adjusted.
The Liquid Metal preset was adjusted.
Both packages now support isolated documents, including iframes and PiP windows.
Images smaller than 1024x1024 are upscaled before final rasterization, improving the quality of small SVG image inputs.
Presets were tweaked for Halftone CMYK.
The mixing parameter now works via a smoother curve.
The mixing parameter now works via a smoother curve.
The default cell size was restored after the allowed range was extended.
Extended the cell size range to allow smaller dots.
The contrast parameter curve was adjusted.
The size parameter curve was adjusted.
Shadow contours and blending were improved to work more versatilely with different colors.
The height prop accepts numeric strings, such as "400".
The width prop accepts numeric strings, such as "600".
The Liquid Metal edge contour received minor adjustments, changing its rendered appearance.
Liquid Metal repetition increased 2x.
Liquid Metal has a new default look and presets.
Fixes and other changes 25
The WebGL context is released when a shader is disposed.
Image uniforms now wait for the image to decode before being passed to the shader.
Malformed hex color strings now fall back to a default color instead of resolving to NaN.
The project license changed to Apache License 2.0, which may affect whether and how developers use the package.
Every package now ships a LICENSE file.
Fixed the “none” shape for narrow containers in Liquid Metal.
An empty image prop no longer triggers an error during initial page load in Firefox.
Halftone CMYK now fully supports image transparency.
The JS pre-pass uses a manual blur instead of ctx.filter for Safari support.
Fixed a GLSL error that caused shader rendering to fail.
Image Dithering keeps the origin point consistent regardless of size.
Fluted Glass and Halftone Dots adjust grainOverlay blending so grain is visible over transparent backgrounds.
Mesh Gradient, Static Mesh Gradient, and Static Radial Gradient fix edge case issues with grainOverlay positioning.
Fluted Glass and Image Dithering improved support for transparent images.
Fixed an issue where resizing the shader canvas unexpectedly changed the dot radius.
Color mixing was improved with semi-transparent backgrounds.
The appearance of glass edges was refined when using
margin.Removed the unnecessary “Can’t create a texture on the server” warning during SSR.
Anti-aliasing quality improved for Fluted Glass.
Fixed rendering artifacts visible at large dither sizes.
Cross-GPU safety was improved.
The shader was fixed to work as expected in Firefox.
Fixed rendering for Nvidia GPUs.
Anti-aliasing is improved for all image shaders when images are downscaled.
Liquid Metal has improved contour and edge distortion.