Fix potential warning

This commit is contained in:
Benau 2016-06-26 15:52:47 +08:00
parent 8497ad0204
commit 8bae12e080
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ void main(void)
float emitmap = texture(SpecMap, uv).b;
#endif
if (color_change.x > 0)
if (color_change.x > 0.0)
{
vec3 new_color = hsvToRgb(vec3(color_change.x, color_change.y, rgbToValue(col.rgb)));
col = vec4(new_color.b, new_color.g, new_color.r, col.a);

View File

@ -27,7 +27,7 @@ void main(void)
vec4 col = texture(Albedo, uv);
#endif
if (color_change.x > 0)
if (color_change.x > 0.0)
{
vec3 new_color = hsvToRgb(vec3(color_change.x, color_change.y, rgbToValue(col.rgb)));
col = vec4(new_color.b, new_color.g, new_color.r, col.a);