{"repo":"KoBeWi/Godot-Palette-Swap-Shader","free":true,"listed":false,"github":"https://github.com/KoBeWi/Godot-Palette-Swap-Shader","clone":"git clone https://github.com/KoBeWi/Godot-Palette-Swap-Shader.git","description":"A palette swap shader with animation support and easy setup","language":"GDScript","stars":114,"topics":["godot"],"license":"MIT","category":"game-templates","readme_excerpt":"Godot Palette Swap Shader This shader allows for remapping colors based on a provided palette. It's like your standard palette-swap, except it's easy to setup and supports animation. It comes in 2 versions: Palette Material and Legacy Shader. Palette Material is a new version of the shader, which is much more optimized, but more limited. Legacy Shader is the older version that has bigger color limit, longer animation support and some extra options, but it's slower. The shader comes with an addon that you need to enable in Project Settings. Common Palette format The palette is divided in columns and rows. The top row are \"reference colors\". The shader will replace these colors from the original with the other colors in subsequent rows. Note: Be sure to set texture filter on the node with material to Nearest. Animation The shader has basic animation support. It will cycle through the rows of the assigned palette, based on the fps parameter. Let's consider this image: And this palette: The first row are the grayscale reference colors from the image, the other rows are colors for animation. The result is this: The number of rows determine animation length. If there are only 2 rows (reference and target), the animation is disabled. Palette Material The addons comes with a new Material type called PaletteMaterial . It has 2 properties: palette and animation fps . palette is the image palette as described above. The material will automatically select shader based on the palette. If ","default_branch":null,"files":null,"tree":[],"storefront":"/r/KoBeWi","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/KoBeWi/Godot-Palette-Swap-Shader/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}