bevy/examples/3d
Charles 197392a2cd use alpha mask even when unlit (#6047)
# Objective

- Alpha mask was previously ignored when using an unlit material. 
- Fixes https://github.com/bevyengine/bevy/issues/4479

## Solution

- Extract the alpha discard to a separate function and use it when unlit is true

## Notes
I tried calling `alpha_discard()` before the `if` in pbr.wgsl, but I had errors related to having a `discard` at the beginning before doing the texture sampling. I'm not sure if there's a way to fix that instead of having the function being called in 2 places.
2022-09-28 05:54:11 +00:00
..
3d_scene.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
3d_shapes.rs Rename shapes examples for consistency (#6082) 2022-09-25 00:57:07 +00:00
lighting.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
lines.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
load_gltf.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
msaa.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
orthographic.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
parenting.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
pbr.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
render_to_texture.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
shadow_biases.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
shadow_caster_receiver.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
skybox.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
spherical_area_lights.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
split_screen.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
spotlight.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
texture.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
transparency_3d.rs use alpha mask even when unlit (#6047) 2022-09-28 05:54:11 +00:00
two_passes.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
update_gltf_scene.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
vertex_colors.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00
wireframe.rs Spawn now takes a Bundle (#6054) 2022-09-23 19:55:54 +00:00