-
-
Notifications
You must be signed in to change notification settings - Fork 36k
TSL: Add MRT support for traaPass()
#31361
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
Conversation
📦 Bundle sizeFull ESM build, minified and gzipped.
🌳 Bundle size after tree-shakingMinimal build including a renderer, camera, empty scene, and dependencies.
|
So with this PR only beauty is resolved, right? Other color attachments like normal, emissive are not resolved? It seems there is an issue that I've mentioned previosuly in #29636 (comment). The sample (the rendering stored in That's the main issue that concerned me initially and blocked an implementation since I'm not sure how other engines are handle this aspect. Do they resolve all attachments? If not, attachments like normal or emissive must render with a camera that has no jitter applied. Which means we would need more than one render pass or different camera uniforms. |
Hmm... It transfers the other attachments from |
I think that we could use |
Yes, this isn't correct at the moment (at least I believe it isn't right). I was trying to investigate how other engines handle this topic but I found no MRT specific discussions. Most articles in the web only focus on the beauty pass. |
Sounds good! |
After talking to a colleague from the university, reading multiple web sources and a chat with Gemini the situation is a bit more clear now.
So I think the PR is a good as it is although the suggestion from #31361 (comment) should be implemented. Using For the future, we should implement something like |
Related issue: #31354 (comment)
Description
Creates a new MRT to transfer the remaining textures from the SampleRenderTarget to the final RenderTarget.