yum-archive/SoggyShaders

Old Unity shaders.

git clone https://git.yummers.dev/yum-archive/SoggyShaders

yumAdd grass shader03368f2

master
741 B36 linesraw
1#ifndef __SHADERTOY_INC
2#define __SHADERTOY_INC
3
4#include "AutoLight.cginc"
5#include "pema99.cginc"
6#include "poi.cginc"
7
8// https://www.shadertoy.com/view/3ttSzr
9void effect_crumpled_wave( out float4 fragColor, in float2 uv ){
10  for(float i = 1.0; i < 8.0; i++) {
11    uv.y += i * 0.1 / i *
12      sin(uv.x * i * i + _Time[3] * 0.5) *
13      sin(uv.y * i * i + _Time[3] * 0.5);
14  }
15
16  float3 col;
17  col.r  = uv.y - 0.1;
18  col.g = uv.y + 0.3;
19  col.b = uv.y + 0.95;
20
21  col = RGBtoHSV(col);
22
23  float x_diff = 0.50 - col.x;
24  col.x = 0.80 + x_diff * 0.5;
25  col.x += uv.x / 16.0 + .05;
26
27  col.y *= 0.8;
28  col.z *= 0.7;  // Darken
29
30  col.x = glsl_mod(col.x, 1.0);
31  col = HSVtoRGB(col);
32
33  fragColor = float4(col,1.0);
34}
35
36#endif // __SHADERTOY_INC