Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderTransitionPass: Simplify render(). #28555

Merged
merged 1 commit into from
Jun 5, 2024
Merged

RenderTransitionPass: Simplify render(). #28555

merged 1 commit into from
Jun 5, 2024

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Jun 4, 2024

Related issue: #28174

Description

RenderTransitionPass should only be used during a transition so its render() method can be simplified.

@@ -220,7 +220,7 @@
this.camera = camera;
this.mesh = mesh;

this.render = function ( delta ) {
this.update = function ( delta ) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method renders nothing so using the name update() is less consufing.

@@ -179,9 +157,6 @@ class RenderTransitionPass extends Pass {

}

#include <tonemapping_fragment>
#include <colorspace_fragment>
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using OutputPass is mandatory so it's inconsistent if only RenderTransitionPass does tone mapping and color space conversion on its own.

@Mugen87 Mugen87 added this to the r166 milestone Jun 4, 2024
@Mugen87 Mugen87 merged commit c870fa1 into mrdoob:dev Jun 5, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant