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

Improve mouse cursor location #313

Merged
merged 5 commits into from
Feb 11, 2024
Merged

Improve mouse cursor location #313

merged 5 commits into from
Feb 11, 2024

Conversation

TokisanGames
Copy link
Owner

@TokisanGames TokisanGames commented Feb 2, 2024

Fixes #121
Fixes #311
Fixes #225
Fixes #6

Features

  • Uses the GPU to detect the location of the mouse on the terrain. Like the previous method, it works without collision. Unlike the previous method, it is instant and has virtually no distance limit (camera far clip hard coded at 100k).
  • Works with both the Forward+ and Mobile renderers.
  • Provides a render_mouse_layer option to specify the render layer used so get_intersection does not pick up non-terrain objects.
  • Ignores holes, so drawing on the opposite side of the terrain is no longer an issue.
  • Adds support for Orthogonal cameras
  • Adds support for Half resolution viewports
  • Adds support for all editor cameras and 4-way terrain editing
  • Improvements to decals
  • material.get/set_shader_params now provides access to private shader variables.
  • Improved usage with vertex_spacing
  • Tons of documentation updates

@TokisanGames TokisanGames merged commit 8377ebf into main Feb 11, 2024
12 checks passed
@TokisanGames TokisanGames deleted the mouse-cursor branch February 11, 2024 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant