Fractal Noise
TheFractalNoise component creates smooth, continuous noise patterns ideal for clouds, terrain, and organic textures.
Props
| Name | Type | Description |
|---|---|---|
| freqX | number | Base frequency in the X direction (range: 0.0 to 1.0) |
| freqY | number | Base frequency in the Y direction (range: 0.0 to 1.0) |
| octaves | number | Number of noise iterations for detail |
| seed | number | Random seed for the noise pattern (default: 0) |
| tileWidth | number | If non-zero with tileHeight, makes the noise tileable (default: 0) |
| tileHeight | number | If non-zero with tileWidth, makes the noise tileable (default: 0) |
Basic Example
Understanding Parameters
Frequency (freqX, freqY)
Controls the scale of the noise pattern. Lower values create larger, smoother patterns:Octaves
Determines the level of detail. More octaves add finer details:Seed
Changing the seed creates different variations:Turbulence
TheTurbulence component creates more chaotic, energetic patterns suitable for fire, water, or abstract effects.
Props
| Name | Type | Description |
|---|---|---|
| freqX | number | Base frequency in the X direction (range: 0.0 to 1.0) |
| freqY | number | Base frequency in the Y direction (range: 0.0 to 1.0) |
| octaves | number | Number of noise iterations for detail |
| seed | number | Random seed for the noise pattern (default: 0) |
| tileWidth | number | If non-zero with tileHeight, makes the noise tileable (default: 0) |
| tileHeight | number | If non-zero with tileWidth, makes the noise tileable (default: 0) |
Basic Example
Tileable Patterns
Create seamlessly repeating noise patterns:Creative Applications
Cloud Effect
Marble Texture
Organic Background
Combining with Other Shaders
Blending with Gradients
Multiple Noise Layers
Colored Noise
Animation
Animate noise by changing the seed value:Fractal vs Turbulence
When to Use Fractal Noise
- Smooth, continuous patterns
- Natural textures (clouds, terrain)
- Subtle background effects
- Displacement effects
When to Use Turbulence
- Chaotic, energetic effects
- Fire, smoke, water effects
- Abstract patterns
- High-contrast textures
Performance Tips
- Fewer octaves render faster
- Consider using lower frequencies for large areas
- Cache noise patterns that don’t change
- Use tileable noise for repeating patterns
- Reduce octaves for real-time animation
Common Patterns
Water Effect
Wood Grain
Stone Texture
Fog
See Also
- Color Shaders - Blending shaders
- Gradients - Gradient effects
- Shading Language - Custom shaders
- Image Shaders - Using images as shaders