mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Skip tonemapping in case it is none (#13679)
# Objective Skip unnecessary blit then tonemapping is set to none. ## Testing Only tested locally on our app. ## Changelog Changed tonemapping not to execute in case it is set to none. Co-authored-by: Lukas Chodosevicius <lukaschodosevicius@Lukass-MacBook-Pro.local>
This commit is contained in:
parent
bd6acc6119
commit
2b20af6b79
1 changed files with 4 additions and 0 deletions
|
@ -48,6 +48,10 @@ impl ViewNode for TonemappingNode {
|
|||
let view_uniforms = &view_uniforms_resource.uniforms;
|
||||
let view_uniforms_id = view_uniforms.buffer().unwrap().id();
|
||||
|
||||
if *tonemapping == Tonemapping::None {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if !target.is_hdr() {
|
||||
return Ok(());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue