Reduce precision of floats in fragment shader
~0.43ms/frame -> ~0.37ms/frame
This commit is contained in:
@@ -55,7 +55,7 @@ void main() {
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
const fragmentShaderSource = `#version 300 es
|
const fragmentShaderSource = `#version 300 es
|
||||||
precision mediump float;
|
precision lowp float;
|
||||||
|
|
||||||
in vec2 v_texcoord;
|
in vec2 v_texcoord;
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ void main() {
|
|||||||
}`;
|
}`;
|
||||||
|
|
||||||
const fragmentShaderSource = `#version 300 es
|
const fragmentShaderSource = `#version 300 es
|
||||||
precision mediump float;
|
precision lowp float;
|
||||||
|
|
||||||
in vec3 v_color;
|
in vec3 v_color;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user