https://github.com/viniciusgerevini/godot-color-replacement-example
Here are 3 examples of how to replace color from parts of images (skin, hair, clothes) in Godot
https://github.com/viniciusgerevini/godot-color-replacement-example
Last synced: 3 months ago
JSON representation
Here are 3 examples of how to replace color from parts of images (skin, hair, clothes) in Godot
- Host: GitHub
- URL: https://github.com/viniciusgerevini/godot-color-replacement-example
- Owner: viniciusgerevini
- License: mit
- Created: 2021-07-01T07:37:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-07-01T08:27:03.000Z (almost 4 years ago)
- Last Synced: 2025-02-03T16:47:38.076Z (4 months ago)
- Language: GDScript
- Size: 334 KB
- Stars: 5
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Godot Image Color Replacement Example
This example contains 3 different approaches for changing colors from images dynamically in Godot. Useful for skin, hair and clothes.
Example created for this video: https://www.youtube.com/watch?v=sCZFttl8TZk
## Examples
`./scenes/example_layered.tscn`: Layered approach using modulate to change color from base layers.
`./scenes/example_with_shader.tscn`: Uses a shader to replace a defined color by another one.
`./scenes/example_pixel_color_replace.tscn`: Changes color pixel by pixel via GDScript.
![]()