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
string | HTMLImageElement
default:"''"
Optional source image to apply the paper texture filter to
string
default:"'#9fadbc'"
Foreground color in hex, rgb, or rgba format
string
default:"'#ffffff'"
Background color in hex, rgb, or rgba format
number
default:"0.3"
Blending behavior controlling sharpness vs smoothness of color transitions
number
default:"0.4"
Pixel noise intensity, related to canvas and not scalable
number
default:"0.3"
Curly-shaped noise intensity for paper fiber simulation
number
default:"0.2"
Scale of the curly-shaped fiber noise pattern
number
default:"0.3"
Cell-based crumple pattern intensity
number
default:"0.35"
Scale of the cell-based crumple pattern
number
default:"0.65"
Depth of the paper folds
number
default:"5"
Number of fold lines in the paper texture
number
default:"0"
Big-scale noise mask applied to the pattern for variation
number
default:"0.2"
Visibility of speckle pattern on the paper surface
number
default:"5.8"
Random seed for folds, crumples, and dots pattern variation
Sizing Parameters
'none' | 'contain' | 'cover'
default:"'cover'"
How to fit the shader into the canvas dimensions
number
default:"0.6"
Overall zoom level of the graphics
number
default:"0"
Overall rotation angle in degrees
number
default:"0"
Horizontal offset of the graphics center
number
default:"0"
Vertical offset of the graphics center
number
default:"0.5"
Horizontal reference point for positioning
number
default:"0.5"
Vertical reference point for positioning
Animation Parameters
number
default:"0"
Animation speed multiplier (0 for static)
number
default:"0"
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)
