-
Notifications
You must be signed in to change notification settings - Fork 132
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
Incorrect rendering when renderOverlay is set to true for meshes #1053
Comments
This is what happens on the PG. I think there is some z-fighting issues in native. |
The issue is that renderOverlay uses zOffset which is not supported in Babylon Native yet because it's not supported in bgfx. BabylonNative/Plugins/NativeEngine/Source/NativeEngine.cpp Lines 806 to 808 in 762acec
Removing |
Log an error when this happens for now. |
This issue probably shouldn't be closed. It is still a problem even though we added a warning. |
In BabylonReactNative, when you set renderOverlay to true for a mesh, the overlay will display with inconsistent color across the mesh:
iOS
Android
Note: This behavior is not present in BabylonNative.
Bugs
Repro:
Set renderOverlay to true for one of the meshes in App.tsx
Expected result:
Uniform overlay look and color
Current result:
See pics above
The text was updated successfully, but these errors were encountered: