Features
- Multiple noise layers for realistic paper texture
- Fiber patterns and crumple effects
- Configurable folds and drops
- Roughness and grain control
- Works as an image filter or standalone
Basic Usage
Parameters
Visual Parameters
Optional source image to apply the paper texture filter to
Foreground color in hex, rgb, or rgba format
Background color in hex, rgb, or rgba format
Blending behavior controlling sharpness vs smoothness of color transitions
Pixel noise intensity, related to canvas and not scalable
Curly-shaped noise intensity for paper fiber simulation
Scale of the curly-shaped fiber noise pattern
Cell-based crumple pattern intensity
Scale of the cell-based crumple pattern
Depth of the paper folds
Number of fold lines in the paper texture
Big-scale noise mask applied to the pattern for variation
Visibility of speckle pattern on the paper surface
Random seed for folds, crumples, and dots pattern variation
Sizing Parameters
How to fit the shader into the canvas dimensions
Overall zoom level of the graphics
Overall rotation angle in degrees
Horizontal offset of the graphics center
Vertical offset of the graphics center
Horizontal reference point for positioning
Vertical reference point for positioning
Animation Parameters
Animation speed multiplier (0 for static)
Manual frame control for animation
Presets
The PaperTexture shader comes with several built-in presets:- Default: Classic paper texture with balanced settings
- Cardboard: Brown cardboard appearance with fiber texture
- Abstract: Colorful abstract paper with strong folds
- Details: High-detail texture for close-up effects
Examples
Cardboard Texture
Abstract Paper
Technical Details
Shader Uniforms (Vanilla JS)
When using the vanilla JavaScript API, colors are passed as RGBA arrays with values from 0 to 1:Performance Notes
- This shader is static by default (no animation)
- Uses multiple noise layers for realistic texture
- Requires a noise texture (automatically handled in React)
- Best performance with moderate
foldCountvalues (5-10)
