Fixed GLES

This commit is contained in:
Deve 2016-12-31 03:41:37 +01:00
parent cec7c51bc0
commit 6a16f23132
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ void main(void)
#endif #endif
vec4 detail = texture(Detail, uv_bis); vec4 detail = texture(Detail, uv_bis);
detail.rgb = detail.a * detail.rgb; detail.rgb = detail.a * detail.rgb;
color.rgb = detail.rgb + color.rgb * (1 - detail.a); color.rgb = detail.rgb + color.rgb * (1. - detail.a);
float specmap = texture(SpecMap, uv).g; float specmap = texture(SpecMap, uv).g;
FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.); FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.);
} }

View File

@ -30,6 +30,6 @@ void main(void)
float specmap = texture(SpecMap, uv).g; float specmap = texture(SpecMap, uv).g;
#endif #endif
detail.rgb = detail.a * detail.rgb; detail.rgb = detail.a * detail.rgb;
color.rgb = detail.rgb + color.rgb * (1 - detail.a); color.rgb = detail.rgb + color.rgb * (1. - detail.a);
FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.); FragColor = vec4(getLightFactor(color.xyz, vec3(1.), specmap, 0.), 1.);
} }