mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2025-12-16 05:20:06 +01:00
Material Creator Plugin Demo
This plugin demo contains a custom material creation dock inside the Godot editor.
Custom docks are made of Control nodes, they run in the
editor, and any behavior must be done through tool scripts.
For more information, see this documentation article:
https://docs.godotengine.org/en/latest/tutorials/plugins/editor/making_plugins.html#a-custom-dock
Features
- Adjust albedo color, metallic and rouphness values interactively.
- Apply the generated material to selected 3D nodes in the editor.
- Save and load materials in two ways:
.silly_mat: Custom Godot Resource type, handled by custom saver/loader included in the plygin..mtxt: Plain-text format. Useful for external editing or as an interchange format..tres: Standard Godot resource format (works without the custom loader).
Implementation notes
.silly_matformat is registered throughSillyMatFormatSaverandSillyMatFormatLoaderin the plugin.- Custm docks are built from
Controlnodes and run as@toolscripts.