1
0
Fork 0

Fix Uberhader-Rembrandt bug on Mac.

My parser is stricter than your parser. (Unless you're on Ati-non-Mac)
This commit is contained in:
James Turner 2014-01-11 22:32:22 +00:00
parent 304c9e6e77
commit bb640294d8

View file

@ -130,7 +130,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);