Procedural Animation - Animated Texture
Path of the scene: [01_procedural/c_texture]
This code display a quadrangle with a procedural animated texture image. The computation of the texture image is directly performed in a fragment shader in the file shaders/animated_texture/animated_texture.frag.glsl. An initial procedural texture is available in the example code and display an evolving random texture in the radial direction using polar coordinates.
-
- The random nature of the texture is obtained via the call of the
snoisefunction that features simplex noise (/perlin noise). -
- The
snoisefunction is already provided for 2 and 3 input variables. -
- The
snoiseis a variant of the defaultsnoisewhere the summation over the octave is performed on the absolute values of the pseudo-random function.