graphicsdriver/metal: Clarify the type of passing parameters (#757)

Fixes #756
This commit is contained in:
wasedaigo 2018-12-20 17:04:03 +09:00 committed by Hajime Hoshi
parent ff62876552
commit 6840e9e739

View File

@ -170,7 +170,7 @@ fragment float4 FragmentShader(VertexOut v [[stage_in]],
}
c = (color_matrix_body * c) + color_matrix_translation;
c *= v.color;
c = clamp(c, 0, 1);
c = clamp(c, 0.0, 1.0);
c.rgb *= c.a;
return c;
}