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

Prerender buffer for transmissive objects #22595

Closed
wants to merge 3 commits into from
Closed

Prerender buffer for transmissive objects #22595

wants to merge 3 commits into from

Conversation

cabanier
Copy link
Contributor

Related issue: #22594

This contribution is funded by Oculus.

@@ -1249,15 +1265,15 @@ function WebGLRenderer( parameters = {} ) {

}

function renderScene( currentRenderList, scene, camera, viewport ) {
function renderScene( currentRenderList, scene, camera, viewport, renderTransmissiveObjects ) {
Copy link
Collaborator

@Mugen87 Mugen87 Oct 12, 2021

Choose a reason for hiding this comment

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

What is the reason for pre-rendering the buffer for transmissive objects only for the XR code path? Couldn't the renderer always use this approach (so for non-XR setups, too).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No particular reason. I didn't want to change the non-xr path.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, I see. I just wonder if the change becomes simpler if we have a uniform transmission code path.

@mrdoob What do you think?

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants