[rs] Boost texels alpha channel in cube example.

Permits to have a good rendering for WebGL.
This commit is contained in:
VincentFTS
2021-03-26 18:43:45 +01:00
committed by GitHub
parent e07a7cb539
commit d81061eca8

View File

@@ -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()
}