GodotRuntimeTextureSplatMapPainting
Texture and Splat Map painting in-game for Godot Engine (also World Vector3 to UV mapping)
Install / Use
/learn @alfredbaudisch/GodotRuntimeTextureSplatMapPaintingREADME
Godot Engine In-game Splat Map Texture Painting (Dirt Removal Effect)
Texture and Splat Map painting in-game for Godot Engine (also World Vector3 to UV mapping).
- Tutorial and details: https://alfredbaudisch.com/blog/gamedev/godot-engine/godot-engine-in-game-splat-map-texture-painting-dirt-removal-effect/
- Play instructions: you can walk in the world with WASD and to paint click and drag with the left mouse button
https://user-images.githubusercontent.com/248383/181904593-a44b1326-94f2-4937-882b-82cefa869cbf.mp4
Resulted splat map from the video above:

Usages
<ul><li>Actual painting something in game</li><li>Terrain and mesh deformation</li><li>Anything else you can imagine by blending textures. Because it's just a matter of interpolating the painted textures with anything else with shaders (sample shader included here).</li></ul>Features
<ul><li>World Vector3 to UV mapping methods</li><li>Any kind of brush</li><li>Multiple brushes</li><li>Multiple splat maps and multiple textures blended</li><li>Mesh can be anywhere in the world and can be rotated</li></ul>Alternative Solution
My other implementation uses Vertex Painting in order to get the alpha value of texture interpolations. It's simpler, but less flexible and can produce rough results:
Credits
- The World Vector3 to UV code is heavily adapted from this Godot 2 repository from 2017 by Daniel Byron. I also got the Barycentric calculation function from Arnklit’s Waterways Godot Plugin.
- Other than that, it's all implemented by me.
Tips and Support
You can support the development of my open-source contributions and this project on Patreon, a PayPal donation or buy me a coffee with Ko-fi. Or of course, you can get my Godot UI Masterclass Course and learn how to make data-driven and responsive user interfaces with Godot from scratch (the final result is open-source).
Patrons
- Mike King
Updates
For news and more code and art experiments and prototypes:
- Follow me on Twitter 🐦
- Subscribe to my YouTube channel 📺
- Subscribe to my RSS feed
- Bookmark my website
- Or check all of my links to find your preferrable channel
Languages
Security Score
Audited on Jan 24, 2026
