From 82f9416b3f071b2a07e3b49ca7c9939e34f9a593 Mon Sep 17 00:00:00 2001 From: Gabriel Calero Date: Thu, 15 Feb 2018 17:39:01 -0300 Subject: [PATCH] Restore default precision qualifier (needed for pixel) --- libraries/graphics/src/graphics/Material.slh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libraries/graphics/src/graphics/Material.slh b/libraries/graphics/src/graphics/Material.slh index bdb87ff014..f9f4144748 100644 --- a/libraries/graphics/src/graphics/Material.slh +++ b/libraries/graphics/src/graphics/Material.slh @@ -14,6 +14,7 @@ // The material values (at least the material key) must be precisely bitwise accurate // to what is provided by the uniform buffer, or the material key has the wrong bits #ifdef GL_ES +precision highp float; #define BITFIELD highp int #define PRECISIONQ highp #else @@ -70,5 +71,7 @@ const BITFIELD OCCLUSION_MAP_BIT = 0x00004000; const BITFIELD LIGHTMAP_MAP_BIT = 0x00008000; const BITFIELD SCATTERING_MAP_BIT = 0x00010000; - +#ifdef GL_ES +precision lowp float; +#endif <@endif@>