From 8862167700670deeb5ab17610b2392bed83e10f6 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sun, 12 Jan 2014 17:06:23 +0000 Subject: [PATCH] Fix ubershader for Mac, in more places. --- Shaders/ubershader-lightfield.frag | 2 +- Shaders/ubershader.frag | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Shaders/ubershader-lightfield.frag b/Shaders/ubershader-lightfield.frag index 5a5d5ac12..6caf3838c 100644 --- a/Shaders/ubershader-lightfield.frag +++ b/Shaders/ubershader-lightfield.frag @@ -293,7 +293,7 @@ void main (void) ////////////////////////////////////////////////////////////////////// //begin DIRT ////////////////////////////////////////////////////////////////////// - if (dirt_enabled > 0.0){ + if (dirt_enabled >= 1){ vec3 dirtFactorIn = vec3 (dirt_r_factor, dirt_g_factor, dirt_b_factor); vec3 dirtFactor = reflmap.rgb * dirtFactorIn.rgb; //dirtFactor.r = smoothstep(0.0, 1.0, dirtFactor.r); diff --git a/Shaders/ubershader.frag b/Shaders/ubershader.frag index 1875d8f56..3e28e5bc3 100644 --- a/Shaders/ubershader.frag +++ b/Shaders/ubershader.frag @@ -145,7 +145,7 @@ void main (void) ////////////////////////////////////////////////////////////////////// //begin DIRT ////////////////////////////////////////////////////////////////////// - if (dirt_enabled > 0.0){ + if (dirt_enabled >= 1){ vec3 dirtFactorIn = vec3 (dirt_r_factor, dirt_g_factor, dirt_b_factor); vec3 dirtFactor = reflmap.rgb * dirtFactorIn.rgb; //dirtFactor.r = smoothstep(0.0, 1.0, dirtFactor.r);