generated from nathanfranke/gdextension
-
Notifications
You must be signed in to change notification settings - Fork 135
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
Draw region grid in shader instead of gizmos #100
Labels
enhancement
New feature or request
Milestone
Comments
TokisanGames
added
idea
Just an idea, may or may not be implemented
and removed
low priority
Low Priority
labels
Jul 3, 2023
TokisanGames
moved this from 0.9-Beta Release
to 1.0-Stable Release
in Terrain3D Roadmap
Nov 22, 2023
The region_grid is still a debug shader, but the setting is now exposed in the main inspector under Regions. I've updated the Op with remaining steps. |
since we are tracking the mouse pos (only compatibility for now), it would be reasonable to render the currently hovered region even when BG mode is none, but just checking if the region the mouse is in == current region for this vertex. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Todo
Using the editor gizmos for regions is a bit ugly and doesn't occlude. This would look so much better if drawn directly on the terrain, which will traverse the heights and occlude when close. We could even inject that code into custom shaders when inside the editor.
A preview of shader based region grid is in the grid debug view shader. It nicely occludes and stays the same size regardless of distance. Just needs mouse position and highlight color and the region gizmo can be dispensed with.
However, we can't draw on the terrain where no terrain exists. So I'm not sure what to do about the grid for empty regions. Perhaps we do a hybrid and use gizmos for empty slots.
The text was updated successfully, but these errors were encountered: