Skip to content

Commit

Permalink
Expose Tonemapping LUT binding indices (#16934)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
CrushedPixel authored Dec 24, 2024
1 parent dccd770 commit 3f38424
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/bevy_pbr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ pub const RGB9E5_FUNCTIONS_HANDLE: Handle<Shader> = Handle::weak_from_u128(26590
const MESHLET_VISIBILITY_BUFFER_RESOLVE_SHADER_HANDLE: Handle<Shader> =
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 {
Expand Down

0 comments on commit 3f38424

Please sign in to comment.