Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Applying a Color Lookup Table to Textures for Custom Palettes #1

Closed
GudBoiNero opened this issue Sep 14, 2023 · 2 comments
Closed

Applying a Color Lookup Table to Textures for Custom Palettes #1

GudBoiNero opened this issue Sep 14, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request module

Comments

@GudBoiNero
Copy link
Owner

GudBoiNero commented Sep 14, 2023

Ideally I would like to use any image from images/palettes to swap out the colors for any widget or texture I'm using at the time. For right now I'm simply using my custom implementation of Dear ImGui's ImageButtonEx() function. We use a special function utilizing a library stb_image.h to load all of our textures. Inside of this function is where we need to allow for the color lookup table to be implemented.

We would replace the colors like so:

image

Ideally I would like this feature to allow for an input of a file path or some way to use any palette you want.
Later on it would be great to allow for more colors in one palette- since we will allow custom textures.

@GudBoiNero
Copy link
Owner Author

https://learnopengl.com/Getting-started/Shaders
this should help a lot

@GudBoiNero
Copy link
Owner Author

I'll further explain this a little further, we need a module that allows the application of shaders to a texture. I'm going to be scrapping the texture heap and crap hash for now.

@GudBoiNero GudBoiNero pinned this issue Oct 5, 2023
@GudBoiNero GudBoiNero unpinned this issue Oct 5, 2023
@GudBoiNero GudBoiNero closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request module
Projects
None yet
Development

No branches or pull requests

3 participants