tweaking lava lamp
This commit is contained in:
parent
6c13faac96
commit
89a1b555a5
|
|
@ -16,7 +16,7 @@ void fragment() {
|
||||||
dist += 1.0 / distance(vec2(NORMAL.x/stretch_compensatioon, UV.y), vec2(0.0, mod(-TIME*speed*UV.x+0.3, 1.0)));
|
dist += 1.0 / distance(vec2(NORMAL.x/stretch_compensatioon, UV.y), vec2(0.0, mod(-TIME*speed*UV.x+0.3, 1.0)));
|
||||||
//dist = 0.0;
|
//dist = 0.0;
|
||||||
dist += 1.5 / distance(vec2(NORMAL.x/stretch_compensatioon, UV.y), vec2(0.0, fill));
|
dist += 1.5 / distance(vec2(NORMAL.x/stretch_compensatioon, UV.y), vec2(0.0, fill));
|
||||||
dist += 2.0 / distance(vec2(NORMAL.x/stretch_compensatioon, UV2.x), vec2(0.0, 1.0));
|
dist += 1.5 / distance(vec2(NORMAL.x/stretch_compensatioon, UV2.x), vec2(0.0, 1.1));
|
||||||
|
|
||||||
ALBEDO = texture(gradient, UV2).xyz*brightness;
|
ALBEDO = texture(gradient, UV2).xyz*brightness;
|
||||||
ALPHA = float(int(dist > 1.0/drop_size));
|
ALPHA = float(int(dist > 1.0/drop_size));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue