mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[client] egl: switch from mediump
to highp
This fixes a rounding issue on certain hardware (NVidia) which actually implement mediump as half precision (16-bit) float. It's safe to assume `highp` is available as if the GPU does not support it, then the shader compiler will try to find a lower precision that is supported by the GPU
This commit is contained in:
parent
2f48798db9
commit
91b0cba145
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
layout(location = 0) in vec2 vertex;
|
||||
out vec2 fragCoord;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
layout(location = 0) in vec3 vertexPosition_modelspace;
|
||||
layout(location = 1) in vec2 vertexUV;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
in vec2 uv;
|
||||
out vec4 color;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#include "color_blind.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
out vec4 color;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
layout(location = 0) in vec2 vertex;
|
||||
out vec2 uv;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#define EGL_SCALE_AUTO 0
|
||||
#define EGL_SCALE_NEAREST 1
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
in vec2 fragCoord;
|
||||
out vec4 fragColor;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#define PI 3.141592653589793
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
in vec2 fragCoord;
|
||||
out vec4 fragColor;
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#version 300 es
|
||||
precision mediump float;
|
||||
precision highp float;
|
||||
|
||||
#include "compat.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user