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

Custom render passes on a camera #5741

Merged
merged 8 commits into from
Oct 16, 2023
Merged

Custom render passes on a camera #5741

merged 8 commits into from
Oct 16, 2023

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Oct 11, 2023

  • an API (private for now) on the Camera to allow render passes for its rendering to be added to it.
  • those passes are then inserted into the frame graph by forward renderer, allowing rendering the camera using custom render passes.

Suggestion: Hide whitespaces when reviewing.

@mvaligursky mvaligursky self-assigned this Oct 11, 2023
src/scene/composition/render-action.js Show resolved Hide resolved

const passes = this.renderPasses;

const beforePasses = renderPass.beforePasses;
Copy link
Member

Choose a reason for hiding this comment

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

Why not?
passes = renderPass.beforePasses.filter(p => p.enabled)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mvaligursky mvaligursky merged commit 6ade569 into main Oct 16, 2023
7 checks passed
@mvaligursky mvaligursky deleted the mv-camera-render-passes branch October 16, 2023 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants