mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
[rs] Boost texels alpha channel in cube example.
Permits to have a good rendering for WebGL.
This commit is contained in:
@@ -81,7 +81,7 @@ fn create_texels(size: usize) -> Vec<u8> {
|
||||
iter::once(0xFF - (count * 5) as u8)
|
||||
.chain(iter::once(0xFF - (count * 15) as u8))
|
||||
.chain(iter::once(0xFF - (count * 50) as u8))
|
||||
.chain(iter::once(1))
|
||||
.chain(iter::once(0xFF))
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user