Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Shader preset export auto-generated palette Sticky

A topic by Deakcor created Dec 25, 2020 Views: 373 Replies: 2
Viewing posts 1 to 2
(2 edits) (+1)

Hi, with shader preset sometimes you want to indexe colors with an auto-generated palette instead of a static palette image.

For that, save your shader before click on import & manage.


If it's not the case, the palette will be handled as managed palette so it will saves the palette image.

Or in the shadercfg file saved you can just replace the lines (example with a palette)

palette=Object(ImageTexture,"resource_local_to_scene":false,"resource_name":"","flags":2,"storage":0,"lossy_quality":0.7,"flags":2,"image":Object(Image,"resource_local_to_scene":false,"resource_name":"","data":{
"data": PoolByteArray( 26, 28, 44, 255, 93, 39, 93, 255, 177, 62, 83, 255, 239, 125, 87, 255, 255, 205, 117, 255, 167, 240, 112, 255, 56, 183, 100, 255, 37, 113, 121, 255, 41, 54, 111, 255, 59, 93, 201, 255, 65, 166, 246, 255, 115, 239, 247, 255, 244, 244, 244, 255, 148, 176, 194, 255, 86, 108, 134, 255, 51, 60, 87, 255 ),
"format": "RGBA8",
"height": 1,
"mipmaps": false,
"width": 16
},"script":null)
,"size":Vector2( 16, 1 ),"script":null)

By

palette=false

The lines save the palette texture. If the palette is equal to false, the software will auto-generate the palette.

This tool is great, I'm using it for the game I'm currently working on. Thanks 

hey, thank you, please report if you see any bad behavior or missing feature ! Don't hesitate to post some screenshots of your game also if you want