mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-04 15:45:16 +02:00
Merge pull request #95 from Eblo/shader-precision-bugfix
Fix precision issues in vertex shaders
This commit is contained in:
commit
c9047da9ba
2 changed files with 4 additions and 0 deletions
|
@ -1,6 +1,9 @@
|
||||||
#ifdef GLSLES
|
#ifdef GLSLES
|
||||||
|
|
||||||
|
#ifdef FRAGMENT_SHADER
|
||||||
|
/* Only the fragment shader has no default float precision */
|
||||||
precision mediump float;
|
precision mediump float;
|
||||||
|
#endif
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Copyright 2020 Lilian Gimenez (Sentmoraap).
|
// Copyright 2020 Lilian Gimenez (Sentmoraap).
|
||||||
// MIT license.
|
// MIT license.
|
||||||
|
|
||||||
|
precision highp float;
|
||||||
uniform sampler2D texture;
|
uniform sampler2D texture;
|
||||||
uniform vec2 sourceSize;
|
uniform vec2 sourceSize;
|
||||||
uniform vec2 texSizeInv;
|
uniform vec2 texSizeInv;
|
||||||
|
|
Loading…
Add table
Reference in a new issue