Fix potential warning
This commit is contained in:
parent
8497ad0204
commit
8bae12e080
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user