Here's a GLSL shader for Shadertoy that creates realistic animated clouds with a baroque color palette:
// Baroque Clouds
// Rich, ornate colors inspired by baroque art
#define CLOUDSCALE 1.1
#define SPEED 0.03
#define CLOUDDARK 0.5
#define CLOUDLIGHT 0.3
#define CLOUDCOVER 0.2
#define CLOUDALPHA 8.0
#define SKYTINT 0.5
const mat2 m = mat2(1.6, 1.2, -1.2, 1.6);
vec2 hash(vec2 p) {
p = vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)));
return -1.0 + 2.0 * fract(sin(p) * 43758.5453123);
}
float noise(in vec2 p) {
const float K1 = 0.366025404; // (sqrt(3)-1)/2;
const float K2 = 0.211324865; // (3-sqrt(3))/6;
vec2 i = floor(p + (p.x + p.y) * K1);
vec2 a = p - i + (i.x + i.y) * K2;
vec2 o = (a.x > a.y) ? vec2(1.0, 0.0) : vec2(0.0, 1.0);
vec2 b = a - o + K2;
vec2 c = a - 1.0 + 2.0 * K2;
vec3 h = max(0.5 - vec3(dot(a, a), dot(b, b), dot(c, c)), 0.0);
vec3 n = h * h * h * h * vec3(dot(a, hash(i + 0.0)), dot(b, hash(i + o)), dot(c, hash(i + 1.0)));
return dot(n, vec3(70.0));
}
float fbm(vec2 n) {
float total = 0.0, amplitude = 0.1;
for (int i = 0; i < 7; i++) {
total += noise(n) * amplitude;
n = m * n;
amplitude *= 0.4;
}
return total;
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 p = fragCoord.xy / iResolution.xy;
vec2 uv = p * vec2(iResolution.x / iResolution.y, 1.0);
float time = iTime * SPEED;
float q = fbm(uv * CLOUDSCALE * 0.5);
// Ridged multifractal
float r = 0.0;
uv *= CLOUDSCALE;
uv -= q - time;
float weight = 0.8;
for (int i = 0; i < 8; i++) {
r += abs(weight * noise(uv));
uv = m * uv + time;
weight *= 0.7;
}
// Noise for cloud formation
float f = 0.0;
uv = p * vec2(iResolution.x / iResolution.y, 1.0);
uv *= CLOUDSCALE;
uv -= q - time;
weight = 0.7;
for (int i = 0; i < 8; i++) {
f += weight * noise(uv);
uv = m * uv + time;
weight *= 0.6;
}
f *= r + f;
// Noise for small details
float c = 0.0;
time = iTime * SPEED * 2.0;
uv = p * vec2(iResolution.x / iResolution.y, 1.0);
uv *= CLOUDSCALE * 2.0;
uv -= q - time;
weight = 0.4;
for (int i = 0; i < 7; i++) {
c += weight * noise(uv);
uv = m * uv + time;
weight *= 0.6;
}
// Noise for very fine details
float c1 = 0.0;
time = iTime * SPEED * 3.0;
uv = p * vec2(iResolution.x / iResolution.y, 1.0);
uv *= CLOUDSCALE * 3.0;
uv -= q - time;
weight = 0.4;
for (int i = 0; i < 7; i++) {
c1 += abs(weight * noise(uv));
uv = m * uv + time;
weight *= 0.6;
}
c += c1;
// Baroque color palette - rich golds, deep purples, warm crimsons
vec3 baroqueGold = vec3(0.8, 0.6, 0.2);
vec3 baroquePurple = vec3(0.4, 0.2, 0.6);
vec3 baroqueCrimson = vec3(0.7, 0.2, 0.3);
vec3 baroqueAmber = vec3(0.9, 0.5, 0.1);
vec3 baroqueDeepBlue = vec3(0.1, 0.2, 0.5);
// Sky gradient with baroque colors
vec3 skycolor = mix(baroqueDeepBlue, baroquePurple, p.y);
skycolor = mix(skycolor, baroqueAmber, pow(1.0 - p.y, 2.0));
// Cloud density
float cloudDensity = max(f + c, 0.0);
// Cloud coloring with baroque palette
vec3 cloudcolor = baroqueGold * 1.15 + baroqueCrimson * 0.5;
cloudcolor = mix(cloudcolor, baroqueAmber, r * 0.4);
cloudcolor = mix(cloudcolor, baroquePurple * 0.6, pow(cloudDensity, 2.0) * 0.3);
// Add some warm highlights
cloudcolor += baroqueGold * pow(cloudDensity, 3.0) * 0.3;
// Cloud shading
cloudDensity = 1.0 - exp(-cloudDensity * CLOUDALPHA);
cloudDensity = clamp(cloudDensity - CLOUDCOVER, 0.0, 1.0);
cloudDensity *= CLOUDLIGHT;
// Final color mixing
vec3 result = mix(skycolor, clamp(cloudcolor * cloudDensity, 0.0, 1.0), cloudDensity);
// Add some atmospheric perspective
result = mix(result, skycolor, 1.0 - exp(-0.0001 * pow(length(uv), 2.0)));
fragColor = vec4(result, 1.0);
}
This shader creates realistic volumetric clouds with several key features:
Cloud Generation: Uses multiple octaves of fractal noise with different scales and speeds to create realistic cloud formations with fine details and larger structures.
Animation: The clouds grow and evolve over time with different layers moving at different speeds, creating a natural flowing effect.
Baroque Color Palette: Rich, ornate colors including deep golds, royal purples, warm crimsons, and amber tones that evoke the luxurious aesthetic of baroque art.
Realistic Lighting: The clouds have proper density-based shading with highlights and shadows, plus atmospheric perspective that makes distant areas fade into the sky color.
Layered Detail: Multiple noise functions at different scales create everything from large cloud masses to fine wispy details.
The shader uses ridged multifractal noise for the main cloud structure and regular fractal noise for details, creating clouds that look volumetric and three-dimensional while maintaining the rich, dramatic coloring characteristic of baroque art.