precision android
This commit is contained in:
parent
0eee41e5ce
commit
8dae1792e5
|
@ -32,9 +32,9 @@ function main() {
|
|||
uniform mat4 uviewMatrix;
|
||||
uniform mat4 umodelMatrix;
|
||||
|
||||
varying lowp vec4 vColor;
|
||||
varying lowp vec4 vNormal;
|
||||
varying lowp vec3 vPosition;
|
||||
varying highp vec4 vColor;
|
||||
varying highp vec4 vNormal;
|
||||
varying highp vec3 vPosition;
|
||||
void main()
|
||||
{
|
||||
gl_Position = uProjectionMatrix *
|
||||
|
@ -48,11 +48,11 @@ function main() {
|
|||
`;
|
||||
|
||||
const fsSource = `
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
varying lowp vec4 vColor;
|
||||
varying lowp vec4 vNormal;
|
||||
varying lowp vec3 vPosition;
|
||||
varying highp vec4 vColor;
|
||||
varying highp vec4 vNormal;
|
||||
varying highp vec3 vPosition;
|
||||
|
||||
vec3 extremize(vec3 v, float n) {
|
||||
if (v.x > n / 2.)
|
||||
|
|
Loading…
Reference in New Issue