From d81061eca8218480ef86668cdef0f316f214a0ba Mon Sep 17 00:00:00 2001 From: VincentFTS Date: Fri, 26 Mar 2021 18:43:45 +0100 Subject: [PATCH] [rs] Boost texels alpha channel in cube example. Permits to have a good rendering for WebGL. --- wgpu/examples/cube/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wgpu/examples/cube/main.rs b/wgpu/examples/cube/main.rs index df565702cc..983dde1130 100644 --- a/wgpu/examples/cube/main.rs +++ b/wgpu/examples/cube/main.rs @@ -81,7 +81,7 @@ fn create_texels(size: usize) -> Vec { 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() }