Module shaders
Available on crate feature
engine only.Functions§
- blend
- color
- color_
in_ space - coord_
clamp - empty
- fractal_
noise - image
- Create an
Shaderthat will sample the ‘image’. This is equivalent to [Image::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 to [Image::to_raw_shader]. - sweep_
gradient - Returns a shader that generates a sweep gradient given a center.
- turbulence
- two_
point_ conical_ gradient - Returns a shader that generates a conical gradient given two circles.