From b3eb5daa222e60fd21ee6077deb355d7585de841 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 13 May 2011 11:57:47 -0400 Subject: [PATCH] specify precision for cross-platform shader --- lighting/f_shader.glsl | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lighting/f_shader.glsl b/lighting/f_shader.glsl index abca9aa..35dc833 100644 --- a/lighting/f_shader.glsl +++ b/lighting/f_shader.glsl @@ -1,4 +1,10 @@ +#ifdef GL_FRAGMENT_PRECISION_HIGH +precision highp float; +#else +precision mediump float; +#endif + uniform vec4 ambient, diffuse, specular; uniform float shininess;