Added full block descriptions, improved shield shaders

This commit is contained in:
Anuken
2017-11-20 19:02:35 -05:00
parent aedf46257a
commit 806b762333
7 changed files with 131 additions and 78 deletions

View File

@ -8,6 +8,7 @@ uniform sampler2D u_texture;
uniform vec4 u_color;
uniform vec2 u_texsize;
uniform float u_time;
uniform float u_scaling;
uniform vec2 u_offset;
varying vec4 v_color;
@ -19,7 +20,7 @@ void main() {
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);
T += vec2(sin(coords.y / 3.0 + u_time / 20.0) / 250.0, sin(coords.x / 3.0 + u_time / 20.0) / 250.0) * u_scaling;
float si = 1.0 + sin(u_time / 20.0 /*+ (coords.x + coords.y) / 30.0*/) / 8.0;