precision android

This commit is contained in:
gbrochar 2020-11-23 20:50:43 +01:00
parent 0eee41e5ce
commit 8dae1792e5
1 changed files with 7 additions and 7 deletions

View File

@ -32,9 +32,9 @@ function main() {
uniform mat4 uviewMatrix; uniform mat4 uviewMatrix;
uniform mat4 umodelMatrix; uniform mat4 umodelMatrix;
varying lowp vec4 vColor; varying highp vec4 vColor;
varying lowp vec4 vNormal; varying highp vec4 vNormal;
varying lowp vec3 vPosition; varying highp vec3 vPosition;
void main() void main()
{ {
gl_Position = uProjectionMatrix * gl_Position = uProjectionMatrix *
@ -48,11 +48,11 @@ function main() {
`; `;
const fsSource = ` const fsSource = `
precision mediump float; precision highp float;
varying lowp vec4 vColor; varying highp vec4 vColor;
varying lowp vec4 vNormal; varying highp vec4 vNormal;
varying lowp vec3 vPosition; varying highp vec3 vPosition;
vec3 extremize(vec3 v, float n) { vec3 extremize(vec3 v, float n) {
if (v.x > n / 2.) if (v.x > n / 2.)