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

[DO NOT MERGE] Rendering to texture reflection issue #7191

Closed
wants to merge 1 commit into from

Conversation

mvaligursky
Copy link
Contributor

@mvaligursky mvaligursky commented Dec 10, 2024

related to #7183

This is just a render-to-texture example updated with multiple meshes, and the camera which renders to texture no longer orbits but matches the main camera. We should expect the image that gets rendered to the texture matches the main framebuffer.

All other meshes render correctly, both the IBL reflection as well as specular from the light, but the original mesh from the issues has those incorrectly rendered.
As mentioned, the IBL part at least can be "fixed" by inverting normal or view vector used by fresnel calculation, but that breaks all other meshes.
So it's somehow specific to that one mesh. So far I was not successful finding out what it is - normals seems fine.

Creating this PR in case we at some point get to investigate it again. It will also give us a deployed link for further testing (https://engine-mummlbpju-playcanvas.vercel.app/#/graphics/render-to-texture)

Screenshot 2024-12-10 at 13 41 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant