mirror of
				https://github.com/godotengine/godot.git
				synced 2025-10-31 05:31:01 +00:00 
			
		
		
		
	Exposed RenderingDevice to script API
Also added an easier way to load native GLSL shaders. Extras: Had to fix no-cache for subresources in resource loader, it was not properly working, making shaders not properly reload. Note: The precommit hooks are broken because they don't seem to support enums from one class being used in another. Feel free to fix this after merging this PR.
This commit is contained in:
		
							parent
							
								
									6d8e1aea89
								
							
						
					
					
						commit
						ae09b55a19
					
				
					 75 changed files with 4439 additions and 135 deletions
				
			
		|  | @ -98,6 +98,7 @@ | |||
| #include "editor/import/resource_importer_layered_texture.h" | ||||
| #include "editor/import/resource_importer_obj.h" | ||||
| #include "editor/import/resource_importer_scene.h" | ||||
| #include "editor/import/resource_importer_shader_file.h" | ||||
| #include "editor/import/resource_importer_texture.h" | ||||
| #include "editor/import/resource_importer_texture_atlas.h" | ||||
| #include "editor/import/resource_importer_wav.h" | ||||
|  | @ -148,6 +149,7 @@ | |||
| #include "editor/plugins/script_editor_plugin.h" | ||||
| #include "editor/plugins/script_text_editor.h" | ||||
| #include "editor/plugins/shader_editor_plugin.h" | ||||
| #include "editor/plugins/shader_file_editor_plugin.h" | ||||
| #include "editor/plugins/skeleton_2d_editor_plugin.h" | ||||
| #include "editor/plugins/skeleton_3d_editor_plugin.h" | ||||
| #include "editor/plugins/skeleton_ik_3d_editor_plugin.h" | ||||
|  | @ -5716,6 +5718,10 @@ EditorNode::EditorNode() { | |||
| 		import_obj.instance(); | ||||
| 		ResourceFormatImporter::get_singleton()->add_importer(import_obj); | ||||
| 
 | ||||
| 		Ref<ResourceImporterShaderFile> import_shader_file; | ||||
| 		import_shader_file.instance(); | ||||
| 		ResourceFormatImporter::get_singleton()->add_importer(import_shader_file); | ||||
| 
 | ||||
| 		Ref<ResourceImporterScene> import_scene; | ||||
| 		import_scene.instance(); | ||||
| 		ResourceFormatImporter::get_singleton()->add_importer(import_scene); | ||||
|  | @ -6633,6 +6639,7 @@ EditorNode::EditorNode() { | |||
| 
 | ||||
| 	add_editor_plugin(VersionControlEditorPlugin::get_singleton()); | ||||
| 	add_editor_plugin(memnew(ShaderEditorPlugin(this))); | ||||
| 	add_editor_plugin(memnew(ShaderFileEditorPlugin(this))); | ||||
| 	add_editor_plugin(memnew(VisualShaderEditorPlugin(this))); | ||||
| 
 | ||||
| 	add_editor_plugin(memnew(Camera3DEditorPlugin(this))); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Juan Linietsky
						Juan Linietsky