绘制的图像
源码
1 void main() 2 { 3 vec2 uv = TexCoords; 4 uv = uv * 2. -1.; 5 6 //noise_sum_abs noise_fractal value_noise 7 8 float intensity = noise_fractal(vec2(uv.x + pow(time * 10, 2.0), uv.y + pow(time * 100, 2.0))); // (vec3(p3*12.0+12.0)); 正负0.3左右 9 10 //intensity *= 1.0; 11 12 float t = clamp((uv.x * -uv.x * 0.25) + 0.25, 0., 1.); 13 //t = uv.x * -uv.x; 14 //t = 1.0; 15 float y = abs(intensity * -t + uv.y); 16 //y = abs(intensity * -t); 17 //y = abs(1.0 * -t + uv.y); 18 19 float g = pow(y, 0.2); 20 21 vec3 col = vec3(1.70, 1.48, 1.78); 22 col = col * -g + col; 23 col = col * col * col * col; 24 25 FragColor = vec4(col, 1.0); 26 27 }