diff options
Diffstat (limited to 'wgpu')
| -rw-r--r-- | wgpu/src/shader/quad.vert | 12 | ||||
| -rw-r--r-- | wgpu/src/shader/quad.vert.spv | bin | 3372 -> 3348 bytes | |||
| -rw-r--r-- | wgpu/src/widget/pane_grid.rs | 4 | 
3 files changed, 8 insertions, 8 deletions
diff --git a/wgpu/src/shader/quad.vert b/wgpu/src/shader/quad.vert index 1d9a4fd2..11f95eeb 100644 --- a/wgpu/src/shader/quad.vert +++ b/wgpu/src/shader/quad.vert @@ -21,14 +21,14 @@ layout(location = 4) out float o_BorderRadius;  layout(location = 5) out float o_BorderWidth;  void main() { -    vec2 p_Pos = i_Pos * u_Scale; -    vec2 p_Scale = i_Scale  * u_Scale; +    vec2 p_Pos = floor(i_Pos * u_Scale); +    vec2 p_Scale = floor(i_Scale  * u_Scale);      mat4 i_Transform = mat4( -        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(p_Scale.x, 0.0, 0.0, 0.0), +        vec4(0.0, p_Scale.y, 0.0, 0.0),          vec4(0.0, 0.0, 1.0, 0.0), -        vec4(p_Pos - vec2(0.5, 0.5), 0.0, 1.0) +        vec4(p_Pos, 0.0, 1.0)      );      o_Color = i_Color; @@ -36,7 +36,7 @@ void main() {      o_Pos = p_Pos;      o_Scale = p_Scale;      o_BorderRadius = i_BorderRadius * u_Scale; -    o_BorderWidth = i_BorderWidth * u_Scale; +    o_BorderWidth = floor(i_BorderWidth * u_Scale);      gl_Position = u_Transform * i_Transform * vec4(v_Pos, 0.0, 1.0);  } diff --git a/wgpu/src/shader/quad.vert.spv b/wgpu/src/shader/quad.vert.spv Binary files differindex 7059b51b..b3025a93 100644 --- a/wgpu/src/shader/quad.vert.spv +++ b/wgpu/src/shader/quad.vert.spv diff --git a/wgpu/src/widget/pane_grid.rs b/wgpu/src/widget/pane_grid.rs index 578e8960..6f437df7 100644 --- a/wgpu/src/widget/pane_grid.rs +++ b/wgpu/src/widget/pane_grid.rs @@ -11,8 +11,8 @@  use crate::Renderer;  pub use iced_native::pane_grid::{ -    Axis, Direction, DragEvent, Focus, KeyPressEvent, Pane, ResizeEvent, Split, -    State, +    Axis, Content, Direction, DragEvent, Focus, KeyPressEvent, Node, Pane, +    ResizeEvent, Split, State,  };  /// A collection of panes distributed using either vertical or horizontal splits  | 
