A Godot 4.4 editor plugin that lets you swap colors in textures (like palette swapping in classic games). You can preview swaps in real-time using a shader and then bake/export the modified texture as a new file.
- Pick any Texture2D from the editor using a resource picker.
- Select a target color and a replacement color.
- Adjust a tolerance value to control how close colors need to be to match.
- Real-time preview of changes inside a dock panel (shader-based).
- Bake/export the final modified texture as a new
.pngfile. - Editor FileSystem refresh + cache busting, so your new file appears immediately.
- Download the plugin from the releases and add the folder into your project under the addons folder
res://addons/palette_swapper/. - In the Godot editor, go to Project > Project Settings > Pluginslugins and enable Palette Swapper.
- The plugin will add a new dock panel to your editor.
-
Open the Palette Swapper Dock.
-
Select a texture using the resource picker.
-
Choose:
- Target Color β the color you want to replace.
- Replace Color β the color you want to swap in.
- Tolerance β how exact the color match must be.
-
Preview updates in real-time.
-
Click Bake & SaveSave to export a new texture file (e.g.
res://swapped_output.png). -
The new texture will appear in your FileSystem dock immediately and is reloaded from disk.
-
If you feel like editing the colors of the whole image, use the full HSV sliders.
PRs and feature requests are welcome! Please test changes in Godot 4.4 before submitting.
MIT License β free to use, modify, and distribute.