mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/metal: Clarify the type of passing parameters (#757)
Fixes #756
This commit is contained in:
parent
ff62876552
commit
6840e9e739
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user