bevy_webview icon indicating copy to clipboard operation
bevy_webview copied to clipboard

`transparent: true` works only partially (white background at start) when loading URI

Open blaind opened this issue 4 years ago • 0 comments

Currently, transparency doesn't work before the URI has been loaded.

Cause: PbrBundle will contain a blended material at startup. However, the default color is RGB(A?) 1,1,1,1. Since colors are multiplied with texture, the color should probably changed at first texture update.

StandardMaterial {
  alpha_mode: AlphaMode::Blend,
  unlit: true,
  ..Default::default()
}

blaind avatar Feb 09 '22 15:02 blaind