Use color packing from cosmic
This commit is contained in:
parent
4c1a83548e
commit
84fb66e27e
1 changed files with 3 additions and 3 deletions
|
@ -64,9 +64,9 @@ fn vs_main(in_vert: VertexInput) -> VertexOutput {
|
|||
vert_output.position.y *= -1.0;
|
||||
|
||||
vert_output.color = vec4<f32>(
|
||||
f32((color & 0xffu)),
|
||||
f32((color & 0xff00u) >> 8u),
|
||||
f32((color & 0xff0000u) >> 16u),
|
||||
f32((color & 0x00ff0000u) >> 16u),
|
||||
f32((color & 0x0000ff00u) >> 8u),
|
||||
f32(color & 0x000000ffu),
|
||||
f32((color & 0xff000000u) >> 24u),
|
||||
) / 255.0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue