mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2024-10-28 11:19:36 +01: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 FRAGMENT_SHADER
|
||||
/* Only the fragment shader has no default float precision */
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
// Copyright 2020 Lilian Gimenez (Sentmoraap).
|
||||
// MIT license.
|
||||
|
||||
precision highp float;
|
||||
uniform sampler2D texture;
|
||||
uniform vec2 sourceSize;
|
||||
uniform vec2 texSizeInv;
|
||||
|
|
Loading…
Reference in a new issue