Added support for changing cached floor/terrain
This commit is contained in:
@@ -1,12 +1,16 @@
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
precision lowp int;
|
||||
#define INTEGER lowp int
|
||||
#else
|
||||
#define INTEGER int
|
||||
#endif
|
||||
|
||||
#define gradients false
|
||||
|
||||
const int MAX_COLORS = 10;
|
||||
|
||||
uniform int u_colornum;
|
||||
uniform INTEGER u_colornum;
|
||||
uniform vec4 u_colors[MAX_COLORS];
|
||||
|
||||
varying float v_height;
|
||||
|
||||
@@ -1,3 +1,11 @@
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
precision lowp int;
|
||||
#define INTEGER lowp int
|
||||
#else
|
||||
#define INTEGER int
|
||||
#endif
|
||||
|
||||
attribute vec4 a_position;
|
||||
attribute vec3 a_normal;
|
||||
|
||||
@@ -14,7 +22,7 @@ uniform float u_spread;
|
||||
uniform float u_magnitude;
|
||||
uniform float u_seed;
|
||||
|
||||
uniform int u_colornum;
|
||||
uniform INTEGER u_colornum;
|
||||
|
||||
varying float v_height;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user