Switched to packing using f16s to maintain acceptable precision.

This commit is contained in:
Bingus 2023-06-07 10:47:57 -07:00
parent 9554c78f3a
commit 677f564f08
No known key found for this signature in database
GPG key ID: 5F84D2AA40A9F170
7 changed files with 160 additions and 148 deletions

View file

@ -652,16 +652,18 @@ mod gradient {
attributes: &wgpu::vertex_attr_array!(
// Position
0 => Float32x2,
// Colors 1-4
// Colors 1-2
1 => Uint32x4,
// Colors 5-8,
// Colors 3-4
2 => Uint32x4,
// Offsets 1-4
3 => Float32x4,
// Offsets 5-8
4 => Float32x4,
// Colors 5-6
3 => Uint32x4,
// Colors 7-8
4 => Uint32x4,
// Offsets
5 => Uint32x4,
// Direction
5 => Float32x4
6 => Float32x4
),
}],
},