Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Offscreen Rendering #7864

Closed
AudreyWong opened this issue May 17, 2024 · 0 comments
Closed

Offscreen Rendering #7864

AudreyWong opened this issue May 17, 2024 · 0 comments

Comments

@AudreyWong
Copy link

AudreyWong commented May 17, 2024

I am using filament to implement OIT effect base on weighted-blended (https://learnopengl.com/Guest-Articles/2020/OIT/Weighted-Blended)
This method needs to render opaque element and transparent element in two pass, and then composite them together. Specially, in transparent pass, it have to output two result texture, one records the accumulated color information, and the other records the alpha.
I try to achieve it with offscreen view, create two texture which bind to attachment0 and attachment1 respectively.

        app.transparentRenderTarget = RenderTarget::Builder()
                .texture(RenderTarget::AttachmentPoint::COLOR0, app.transparentAccumTexture)
                .texture(RenderTarget::AttachmentPoint::COLOR1, app.transparentRevealTexture)
                .texture(RenderTarget::AttachmentPoint::DEPTH, app.solidDepthTexture)
                .build(*engine);

But I don't know how to get the result color after shading and write them to different attachment. I need help TAT!!!!!

@google google locked and limited conversation to collaborators May 18, 2024
@romainguy romainguy converted this issue into discussion #7873 May 18, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant