Donitzo / godot-color-dither

Multicolored dithering shaders for Godot 4.
Creative Commons Zero v1.0 Universal
30 stars 2 forks source link

How to create a palette? #1

Open sommerper opened 1 day ago

sommerper commented 1 day ago

Hi!

I wanted to try this out but got stuck at

assign a palette_image containing the original colors in the inspector

Not sure what to do here? Can I use a png from lospec or is a textfile?

Thanks!

Donitzo commented 4 hours ago

Hello!

You have to use the dither palette generator editor tool script to first produce the dithering palette from a simple image with colors, such as the ones you can download from lospec. You can select how many colors to mix together in the dither.

sommerper commented 2 hours ago

Thanks for taking the time to reply!

I got as far as you said but I'm unable to drag and drop the image to the palette image field. Here I'm using a 1px png from lospec: Oct-27-2024 15-17-35

I also tried writing the absolute path in the path field:

image

Maybe I just don't understand the Image type - or maybe it's because I'm using Godot 4.4dev3.

Donitzo commented 46 minutes ago

Oh right. By default Godot imports images as Textures, change it to import as Image and it should work.