From 50e9befb888480a3d6cb2fa46b58c0753b69bd86 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 12 Jul 2019 10:12:48 -0300 Subject: Changes to material required to add custom shaders in RD renderer --- editor/plugins/collision_polygon_editor_plugin.cpp | 1 - editor/spatial_editor_gizmos.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'editor') diff --git a/editor/plugins/collision_polygon_editor_plugin.cpp b/editor/plugins/collision_polygon_editor_plugin.cpp index f2b4fdfdf1..612b21204d 100644 --- a/editor/plugins/collision_polygon_editor_plugin.cpp +++ b/editor/plugins/collision_polygon_editor_plugin.cpp @@ -549,7 +549,6 @@ Polygon3DEditor::Polygon3DEditor(EditorNode *p_editor) { line_material = Ref(memnew(SpatialMaterial)); line_material->set_flag(SpatialMaterial::FLAG_UNSHADED, true); - line_material->set_line_width(3.0); line_material->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); line_material->set_flag(SpatialMaterial::FLAG_ALBEDO_FROM_VERTEX_COLOR, true); line_material->set_flag(SpatialMaterial::FLAG_SRGB_VERTEX_COLOR, true); diff --git a/editor/spatial_editor_gizmos.cpp b/editor/spatial_editor_gizmos.cpp index beee7b87f0..1120d566be 100644 --- a/editor/spatial_editor_gizmos.cpp +++ b/editor/spatial_editor_gizmos.cpp @@ -1585,7 +1585,7 @@ Position3DSpatialGizmoPlugin::Position3DSpatialGizmoPlugin() { mat->set_flag(SpatialMaterial::FLAG_ALBEDO_FROM_VERTEX_COLOR, true); mat->set_flag(SpatialMaterial::FLAG_SRGB_VERTEX_COLOR, true); mat->set_feature(SpatialMaterial::FEATURE_TRANSPARENT, true); - mat->set_line_width(3); + Array d; d.resize(VS::ARRAY_MAX); d[Mesh::ARRAY_VERTEX] = cursor_points; -- cgit v1.2.3