From 3f38424d4309173f84317495ea4a554faeff7567 Mon Sep 17 00:00:00 2001 From: Marius Metzger Date: Tue, 24 Dec 2024 04:02:14 +0100 Subject: [PATCH] Expose Tonemapping LUT binding indices (#16934) This PR simply exposes Bevy PBR's `TONEMAPPING_LUT_TEXTURE_BINDING_INDEX` and `TONEMAPPING_LUT_SAMPLER_BINDING_INDEX`. # Objective Alongside #16932, this is the last required change to be able to replace Bevy's built-in deferred lighting pass with a custom one based on the original logic. --- crates/bevy_pbr/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_pbr/src/lib.rs b/crates/bevy_pbr/src/lib.rs index f219518dfcce2..6559268bb5c5e 100644 --- a/crates/bevy_pbr/src/lib.rs +++ b/crates/bevy_pbr/src/lib.rs @@ -163,8 +163,8 @@ pub const RGB9E5_FUNCTIONS_HANDLE: Handle = Handle::weak_from_u128(26590 const MESHLET_VISIBILITY_BUFFER_RESOLVE_SHADER_HANDLE: Handle = Handle::weak_from_u128(2325134235233421); -const TONEMAPPING_LUT_TEXTURE_BINDING_INDEX: u32 = 23; -const TONEMAPPING_LUT_SAMPLER_BINDING_INDEX: u32 = 24; +pub const TONEMAPPING_LUT_TEXTURE_BINDING_INDEX: u32 = 23; +pub const TONEMAPPING_LUT_SAMPLER_BINDING_INDEX: u32 = 24; /// Sets up the entire PBR infrastructure of bevy. pub struct PbrPlugin {