效果图:

GLSL 代码和详细注释:
// -------------------
#define _SnowflakeAmount 400 // 雪花数
#define _BlizardFactor 0.25 // 风的大小
#define fragCoord gl_FragCoord
#define fragColor gl_FragColor
uniform float iGlobalTime;
uniform sampler2D tex;
float rnd(float x)
{
return fract(
sin(
dot(vec2(x + 47.49, 38.