Héctor Ramón Jiménez
10d0b257f9
Use Oklab color interpolation only with color::GAMMA_CORRECTION
2023-09-07 07:48:43 +02:00
Matthias Vogelgesang
181708a1c0
Compute gradients in Oklab color space
2023-09-07 07:45:42 +02:00
Héctor Ramón Jiménez
87800095e2
Remove unnecessary interpolate(flat) in quad.wgsl
2023-09-07 05:43:03 +02:00
David Huculak
76cec1b1fd
use @interpolate(flat) attribute as per the WebGPU spec:
...
User-defined vertex outputs and fragment inputs of scalar or vector integer type must always be specified as @interpolate(flat)
https://www.w3.org/TR/WGSL/#interpolation
2023-09-03 19:32:38 -04:00
Bingus
677f564f08
Switched to packing using f16s to maintain acceptable precision.
2023-06-07 11:18:26 -07:00
Bingus
9554c78f3a
Updated color packing into u32 to consider incorrect web-colors.
2023-06-06 17:24:26 -07:00
Bingus
ea7f2626b1
Optimized gradient data packing.
2023-06-06 16:46:20 -07:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations.
2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads
2022-12-02 18:53:21 +01:00
Héctor Ramón Jiménez
33c3c0c0aa
Group all solid triangles independently of color
2022-11-16 09:24:16 +01:00
Robert Krahn
c0596179bd
non uniform border radius for quads
2022-11-03 22:48:26 +01:00
bungoboingo
c4565759e4
Cleaned up namespaces re: PR comments.
2022-10-18 15:18:37 -07:00
shan
f9a6efcaa0
Fixed some more imports/documentation.
2022-10-06 19:41:00 -07:00
shan
cb7c467654
Fixed lint issues & cleaned up some documentation.
2022-10-06 07:28:05 -07:00
shan
f7ce7244d0
Adjusted gradient uniforms to be more tightly packed.
2022-10-05 11:32:59 -07:00
shan
40f45d7b7e
Adds linear gradient support to 2D meshes in the canvas widget.
2022-09-29 11:15:35 -07:00
Cupnfish
390e2a2d34
better wgsl code style
2022-07-02 22:51:51 +08:00
Cupnfish
a88155b2a2
fix wgsl syntax
2022-07-02 22:29:49 +08:00
Cupnfish
c148557cab
update wgpu to 0.13
2022-07-02 15:39:42 +08:00
Poly
23ef0143ed
Update wgpu 0.12
2022-01-04 16:15:44 +07:00
Paul Delafosse
3a723f6ec1
Fix blit shader constants visivility #1083
2021-10-15 12:20:46 +02:00
Dispersia
0772310c4f
Fix duplicating fragment position
2021-05-20 23:10:22 -07:00
Dispersia
983aa1b366
Run cargo fmt
2021-04-12 23:23:47 -07:00
Dispersia
0722d5e3ec
add temporary fix for image wgsl
2021-04-12 23:07:58 -07:00
Dispersia
9a2c78c405
Upgrade wgpu
2021-04-11 18:55:57 -07:00
Héctor Ramón Jiménez
1916755b6b
Limit border radius to max dimension in quad pipeline
2020-11-23 00:43:59 +01:00
Héctor Ramón Jiménez
7f9813d4b3
Revert "Merge pull request #362 from hecrj/fix/target-quad-pixels"
...
This reverts commit 40501f630d , reversing
changes made to 5324eb1024 .
2020-05-28 22:44:52 +02:00
Héctor Ramón Jiménez
fbe3aa3cf4
Align quads to physical pixels in iced_wgpu
2020-05-27 00:23:42 +02:00
Héctor Ramón Jiménez
b44f14e186
Fix MSAA blit vertex shader to match wgpu NDC
2020-04-16 14:54:29 +02:00
Héctor Ramón Jiménez
c58d94f3fd
Avoid creating a vertex buffer every frame
2020-02-26 12:55:04 +01:00
Héctor Ramón Jiménez
82f0a49062
Recompile image shaders
2020-02-25 13:27:43 +01:00
Malte Veerman
2f695ef980
Updated shaders and removed debug_stub_derive dependency
2020-02-25 13:27:03 +01:00
Malte Veerman
2f77a6bf5a
Use array of atlases instead of one growing indefinitely.
2020-02-25 13:26:50 +01:00
Malte Veerman
1bcfc9a5cc
Implemented a texture atlas for images and svgs.
2020-02-25 13:26:33 +01:00
Héctor Ramón Jiménez
dadae12253
Implement MSAA for triangle pipeline in iced_wgpu
2020-02-15 10:08:27 +01:00
Héctor Ramón Jiménez
578ea4abb8
Finish clock example
2020-02-12 08:49:42 +01:00
Héctor Ramón Jiménez
bbc8f837d7
Merge branch 'master' into feature/custom-styling
2020-01-05 22:03:32 +01:00
Héctor Ramón Jiménez
5ca98b113e
Rename Geometry2D to Mesh2D and move it to iced_wgpu
2020-01-02 19:25:00 +01:00
Artur Sapek
0d620b7701
Implement Geometry2D primitive
2020-01-01 22:45:29 -07:00
Héctor Ramón Jiménez
9ab7c47dc7
Add border_width and border_color to Quad
2019-12-31 21:38:52 +01:00
Héctor Ramón Jiménez
5ff05b7f02
Apply HiDPI scaling to quads
...
The anti-aliasing strategy is pretty naive, but we will manage for now.
2019-11-05 20:40:17 +01:00
Héctor Ramón Jiménez
38b6c84e77
Implement basic image rendering in iced_wgpu
2019-10-23 01:21:23 +02:00
Héctor Ramón Jiménez
afacb35f9b
Draw sliders in iced_wgpu
2019-10-12 05:07:00 +02:00
Héctor Ramón Jiménez
10e10e5e06
Make iced_core::Button customizable
...
Now it supports:
- Any kind of content
- Custom border radius
- Custom background
2019-10-08 03:13:41 +02:00
Héctor Ramón Jiménez
a0234d5bce
Draft fragment shader for rounded rectangles
2019-10-08 00:14:11 +02:00
Héctor Ramón Jiménez
c9510db551
Render colored quads
2019-10-07 03:56:16 +02:00