Commit graph

12 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
ff011e5dfd
Disable quad::gradient pipeline on Wasm 2024-02-20 02:51:02 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Jim Eckerlein
e197abe0aa Move vertex position function into own file 2023-09-24 15:19:07 +02:00
Jim Eckerlein
bcc55e6036 Reassign attribute locations 2023-09-24 15:12:32 +02:00
Jim Eckerlein
3f467d1212 Compute vertex position in shader 2023-09-24 15:10:19 +02:00
Héctor Ramón Jiménez
10d0b257f9
Use Oklab color interpolation only with color::GAMMA_CORRECTION 2023-09-07 07:48:43 +02:00
Bingus
677f564f08
Switched to packing using f16s to maintain acceptable precision. 2023-06-07 11:18:26 -07:00
Bingus
ea7f2626b1
Optimized gradient data packing. 2023-06-06 16:46:20 -07:00
Héctor Ramón Jiménez
faa7627ea4
Introduce web-colors feature flag to enable sRGB linear blending
This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.

Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.

This feature flag should facilitate application development with `iced`
in those cases.

More details: https://webcolorisstillbroken.com/
2023-05-31 21:31:58 +02:00
Héctor Ramón Jiménez
c319f5113b
Move Pipeline struct definition after Layer in quad submodules 2023-05-30 01:35:06 +02:00
Héctor Ramón Jiménez
ef547469fd
Improve boundaries between quad submodules in iced_wgpu 2023-05-30 01:33:50 +02:00
Héctor Ramón Jiménez
fe9da174ca
Move layer::quad types to quad module
Not sure why I split these to begin with!
2023-05-30 01:08:34 +02:00