Merge pull request #95 from Eblo/shader-precision-bugfix

Fix precision issues in vertex shaders
This commit is contained in:
Splendide Imaginarius 2023-11-12 14:33:24 +00:00 committed by GitHub
commit c9047da9ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -1,6 +1,9 @@
#ifdef GLSLES
#ifdef FRAGMENT_SHADER
/* Only the fragment shader has no default float precision */
precision mediump float;
#endif
#else

View file

@ -2,6 +2,7 @@
// Copyright 2020 Lilian Gimenez (Sentmoraap).
// MIT license.
precision highp float;
uniform sampler2D texture;
uniform vec2 sourceSize;
uniform vec2 texSizeInv;