pbr lightning for volumetric sphere
This commit is contained in:
parent
aaf26320cb
commit
2598c9420e
2 changed files with 65 additions and 16 deletions
|
|
@ -1,4 +1,5 @@
|
|||
use bevy::{
|
||||
color::palettes::css::RED,
|
||||
pbr::{ExtendedMaterial, MaterialExtension},
|
||||
prelude::*,
|
||||
render::{render_resource::*, storage::ShaderStorageBuffer},
|
||||
|
|
@ -35,6 +36,7 @@ fn setup(
|
|||
Mesh3d(meshes.add(Cuboid::new(2.0, 2.0, 2.0))),
|
||||
MeshMaterial3d(materials.add(ExtendedMaterial {
|
||||
base: StandardMaterial {
|
||||
base_color: RED.into(),
|
||||
alpha_mode: AlphaMode::Blend,
|
||||
..default()
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue