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

Lensflare: Better RTT support. #26886

Merged
merged 1 commit into from Oct 2, 2023
Merged

Lensflare: Better RTT support. #26886

merged 1 commit into from Oct 2, 2023

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Oct 2, 2023

Fixed #26330.

Description

Lensflare uses FramebufferTexture to copy data from the current bound framebuffer to internal textures. The type of these textures must match the render target's texture type which is now half float when using EffectComposer. Meaning the default UnsignedByteType does not work in these scenarios.

The PR ensures Lensflare automatically detects the correct texture type. Lensflare even works if you toggle RTT.

@Mugen87 Mugen87 added this to the r158 milestone Oct 2, 2023
@Mugen87 Mugen87 merged commit c00b168 into mrdoob:dev Oct 2, 2023
18 checks passed
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.

Post-processing will cause an lensflare exception
1 participant