-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[BETA] ESM Grid Renderer #7079
base: main
Are you sure you want to change the base?
[BETA] ESM Grid Renderer #7079
Conversation
Yea so thats the dithering alpha @slimbuck we should prob add a flag for this what do you think? |
Make sure the grid is the last opaque object rendered. Then only semitrans objects will expose the dithering. |
The grid doesn't scale correctly when the screen aspect ratio changes Screen.Recording.2024-11-01.at.15.11.30.mov |
This seems to be related to getFrustumCorners! And I've just seen the corresponding fix https://github.com/playcanvas/engine/pull/7077/files |
Is the grid being affected by postprocessing here? |
Yep, it's got some post on it, but unrelated to the scaling issue which was to do with the frustum calculation |
But is it meant to? |
Sure, whatever renders in the world gets post-processed. |
Ports grid into a script from supersplat editor with changes:
resolution: GridRenderer.RESOLUTION_HIGH | GridRenderer.RESOLUTION_MEDIUM | GridRenderer.RESOLUTION_LOW
halfExtents: Vec2
colorX: Color
,colorZ: Color
Preview