Added uranium and oil refinery

This commit is contained in:
Anuken
2017-10-24 14:11:58 -04:00
parent 03a26f74c2
commit 9c0b8c7e54
33 changed files with 475 additions and 258 deletions

View File

@@ -16,8 +16,11 @@ varying vec2 v_texCoord;
void main() {
vec2 T = v_texCoord.xy;
vec2 coords = (T * u_texsize) + u_offset;
T += vec2(sin(coords.y / 3.0 + u_time / 20.0) / 250.0, sin(coords.x / 3.0 + u_time / 20.0) / 250.0);
float si = 1.0 + sin(u_time / 20.0 /*+ (coords.x + coords.y) / 30.0*/) / 8.0;
vec4 color = texture2D(u_texture, T) * vec4(si, si, si, 1.0);
@@ -27,7 +30,7 @@ void main() {
bool any = false;
float thickness = 1.0;
float step = 1.0;
float step = 1.5;
if(texture2D(u_texture, T).a < 0.1 &&
(texture2D(u_texture, T + vec2(0, step) * v).a > 0.1 || texture2D(u_texture, T + vec2(0, -step) * v).a > 0.1 ||