pbr lightning for volumetric sphere

This commit is contained in:
TÁNCZOS Vilmos Zsombor 2025-05-31 01:21:51 +02:00
parent aaf26320cb
commit 2598c9420e
2 changed files with 65 additions and 16 deletions

View file

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