Skip to content

Commit 6628ce1

Browse files
CrushedPixelmockersf
authored andcommitted
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.
1 parent fcce3fb commit 6628ce1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/bevy_pbr/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ pub const RGB9E5_FUNCTIONS_HANDLE: Handle<Shader> = Handle::weak_from_u128(26590
161161
const MESHLET_VISIBILITY_BUFFER_RESOLVE_SHADER_HANDLE: Handle<Shader> =
162162
Handle::weak_from_u128(2325134235233421);
163163

164-
const TONEMAPPING_LUT_TEXTURE_BINDING_INDEX: u32 = 23;
165-
const TONEMAPPING_LUT_SAMPLER_BINDING_INDEX: u32 = 24;
164+
pub const TONEMAPPING_LUT_TEXTURE_BINDING_INDEX: u32 = 23;
165+
pub const TONEMAPPING_LUT_SAMPLER_BINDING_INDEX: u32 = 24;
166166

167167
/// Sets up the entire PBR infrastructure of bevy.
168168
pub struct PbrPlugin {

0 commit comments

Comments
 (0)