Module shaders
Expand description
Shader factory functions and Shader convenience constructors, re-exported from
crate::shader::shaders.
Functions§
- blend
- color
- color_
in_ space - coord_
clamp - empty
- fractal_
noise - Creates Perlin noise of the given type (fractal noise or turbulence — see
self::turbulence()). Both base frequencies (X and Y) have a usual range of (0..1) and must be non-negative. - image
- Create an
Shaderthat will sample the ‘image’. This is equivalent toImage::to_shader. - linear_
gradient - Returns a shader that generates a linear gradient between the two specified points.
- radial_
gradient - Returns a shader that generates a radial gradient given the center and radius.
- raw_
image - Create an
Shaderthat will sample ‘image’ with minimal processing. This is equivalent toImage::to_raw_shader. - sweep_
gradient - Returns a shader that generates a sweep gradient given a center.
- turbulence
- Creates Perlin turbulence, see
self::fractal_noise()for the parameter semantics. - two_
point_ conical_ gradient - Returns a shader that generates a conical gradient given two circles.