Revert "Target physical pixels for quads in iced_glow"

This reverts commit 45511a442f.
This commit is contained in:
Héctor Ramón Jiménez 2020-05-28 22:57:30 +02:00
parent 6de0a2c371
commit e11b5c614f
2 changed files with 8 additions and 8 deletions

View file

@ -26,14 +26,14 @@ const vec2 positions[4] = vec2[](
void main() {
vec2 q_Pos = positions[gl_VertexID];
vec2 p_Pos = floor(i_Pos * u_Scale);
vec2 p_Scale = floor(i_Scale * u_Scale);
vec2 p_Pos = i_Pos * u_Scale;
vec2 p_Scale = i_Scale * u_Scale;
mat4 i_Transform = mat4(
vec4(p_Scale.x, 0.0, 0.0, 0.0),
vec4(0.0, p_Scale.y, 0.0, 0.0),
vec4(p_Scale.x + 1.0, 0.0, 0.0, 0.0),
vec4(0.0, p_Scale.y + 1.0, 0.0, 0.0),
vec4(0.0, 0.0, 1.0, 0.0),
vec4(p_Pos, 0.0, 1.0)
vec4(p_Pos - vec2(0.5, 0.5), 0.0, 1.0)
);
v_Color = i_Color;
@ -41,7 +41,7 @@ void main() {
v_Pos = p_Pos;
v_Scale = p_Scale;
v_BorderRadius = i_BorderRadius * u_Scale;
v_BorderWidth = floor(i_BorderWidth * u_Scale);
v_BorderWidth = i_BorderWidth * u_Scale;
gl_Position = u_Transform * i_Transform * vec4(q_Pos, 0.0, 1.0);
}