diff options
author | clayjohn <claynjohn@gmail.com> | 2023-10-24 18:02:36 +0200 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-10-24 18:02:36 +0200 |
commit | 5591f289d75ffa8f39a946f1ffa64bd3b6b34975 (patch) | |
tree | 3af69c2324f2170c5dddd84d16582bcd5ac54025 /editor/plugins/node_3d_editor_plugin.h | |
parent | e8d57afaeccf0d9f9726746f49936eb93aa0039b (diff) | |
download | redot-engine-5591f289d75ffa8f39a946f1ffa64bd3b6b34975.tar.gz |
Uses screen-aligned quads for origin lines to avoid issues on NVidia
While we are add it, use alpha-antialised lines to make them look nice
Diffstat (limited to 'editor/plugins/node_3d_editor_plugin.h')
-rw-r--r-- | editor/plugins/node_3d_editor_plugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.h b/editor/plugins/node_3d_editor_plugin.h index 8b066185c7..5398a04564 100644 --- a/editor/plugins/node_3d_editor_plugin.h +++ b/editor/plugins/node_3d_editor_plugin.h @@ -597,7 +597,8 @@ private: ToolMode tool_mode; - RID origin; + RID origin_mesh; + RID origin_multimesh; RID origin_instance; bool origin_enabled = false; RID grid[3]; @@ -631,7 +632,7 @@ private: RID indicators_instance; RID cursor_mesh; RID cursor_instance; - Ref<StandardMaterial3D> indicator_mat; + Ref<ShaderMaterial> origin_mat; Ref<ShaderMaterial> grid_mat[3]; Ref<StandardMaterial3D> cursor_material; |