Refactored uniform types.

This commit is contained in:
Branimir Karadžić
2015-05-28 15:27:00 -07:00
parent 4bd29facd0
commit ff01992cb7
717 changed files with 637 additions and 728 deletions

View File

@@ -8,14 +8,14 @@ $output v_pos, v_view, v_normal, v_color0
#include "../common/common.sh"
uniform float u_time;
uniform vec4 u_time;
void main()
{
vec3 pos = a_position;
float sx = sin(pos.x*32.0+u_time*4.0)*0.5+0.5;
float cy = cos(pos.y*32.0+u_time*4.0)*0.5+0.5;
float sx = sin(pos.x*32.0+u_time.x*4.0)*0.5+0.5;
float cy = cos(pos.y*32.0+u_time.x*4.0)*0.5+0.5;
vec3 displacement = vec3(sx, cy, sx*cy);
vec3 normal = a_normal.xyz*2.0 - 1.0;