diff --git a/examples/3d/tonemapping.rs b/examples/3d/tonemapping.rs index 2fb671c0f6..66b7d76ce9 100644 --- a/examples/3d/tonemapping.rs +++ b/examples/3d/tonemapping.rs @@ -1,6 +1,7 @@ //! This examples compares Tonemapping options use bevy::{ + asset::UnapprovedPathMode, core_pipeline::tonemapping::Tonemapping, pbr::CascadeShadowConfigBuilder, platform::collections::HashMap, @@ -19,7 +20,12 @@ const SHADER_ASSET_PATH: &str = "shaders/tonemapping_test_patterns.wgsl"; fn main() { App::new() .add_plugins(( - DefaultPlugins, + DefaultPlugins.set(AssetPlugin { + // We enable loading assets from arbitrary filesystem paths as this example allows + // drag and dropping a local image for color grading + unapproved_path_mode: UnapprovedPathMode::Allow, + ..default() + }), MaterialPlugin::::default(), )) .insert_resource(CameraTransform(