研究了一个雪花飘落效果,感觉挺不错的,分享给大家,效果如下:
代码如下:
Shader shadertoy/Flakes { // https://www.shadertoy.com/view/4d2Xzc
Properties{
iMouse (Mouse Pos, Vector) = (100,100,0,0)
iChannel0(iChannel0, 2D) = white {}
iChannelResolution0 (iChannelResolution0, Vector) = (100,100,0,0)
}
CGINCLUDE
#include
1