revert reflections PR changes to the meshlet example (#13539)
# Objective - #13418 introduced unwanted changes to the meshlet example ## Solution - Remove them
This commit is contained in:
parent
d7fc20c484
commit
a8751390aa
@ -8,8 +8,7 @@ mod camera_controller;
|
|||||||
use bevy::{
|
use bevy::{
|
||||||
pbr::{
|
pbr::{
|
||||||
experimental::meshlet::{MaterialMeshletMeshBundle, MeshletPlugin},
|
experimental::meshlet::{MaterialMeshletMeshBundle, MeshletPlugin},
|
||||||
CascadeShadowConfigBuilder, DirectionalLightShadowMap, ScreenSpaceReflectionsBundle,
|
CascadeShadowConfigBuilder, DirectionalLightShadowMap,
|
||||||
ScreenSpaceReflectionsSettings,
|
|
||||||
},
|
},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
render::render_resource::AsBindGroup,
|
render::render_resource::AsBindGroup,
|
||||||
@ -58,14 +57,6 @@ fn setup(
|
|||||||
intensity: 150.0,
|
intensity: 150.0,
|
||||||
},
|
},
|
||||||
CameraController::default(),
|
CameraController::default(),
|
||||||
ScreenSpaceReflectionsBundle {
|
|
||||||
settings: ScreenSpaceReflectionsSettings {
|
|
||||||
perceptual_roughness_threshold: 0.1,
|
|
||||||
thickness: 0.1,
|
|
||||||
..Default::default()
|
|
||||||
},
|
|
||||||
..Default::default()
|
|
||||||
},
|
|
||||||
));
|
));
|
||||||
|
|
||||||
commands.spawn(DirectionalLightBundle {
|
commands.spawn(DirectionalLightBundle {
|
||||||
@ -132,8 +123,8 @@ fn setup(
|
|||||||
commands.spawn(PbrBundle {
|
commands.spawn(PbrBundle {
|
||||||
mesh: meshes.add(Plane3d::default().mesh().size(5.0, 5.0)),
|
mesh: meshes.add(Plane3d::default().mesh().size(5.0, 5.0)),
|
||||||
material: standard_materials.add(StandardMaterial {
|
material: standard_materials.add(StandardMaterial {
|
||||||
base_color: Color::BLACK,
|
base_color: Color::WHITE,
|
||||||
perceptual_roughness: 0.0,
|
perceptual_roughness: 1.0,
|
||||||
..default()
|
..default()
|
||||||
}),
|
}),
|
||||||
..default()
|
..default()
|
||||||
|
Loading…
Reference in New Issue
Block a user