mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Refactored uniform types.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user