Shader 特效——“❤️雨 ” 【GLSL】

效果视频

Shader 特效——“❤雨 ”

效果图

稍加修改后的其他效果

❤ 的泡泡

 代码和详细注释

#define SIZE 15.
#define PINK_COL vec3(219,114,175)/255.
#define BLACK_COL vec3(51,66,94)/255.

#define PI 3.1415926
#define PI_HALF (.5*PI)
#define PIx2 (2.*PI)
 
// 2D rotation matrix
mat2 rotmat(float a)
{
    return mat2(cos(a), sin(a)

猜你喜欢

转载自blog.csdn.net/panda1234lee/article/details/105421928