Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Palette flashes/effect #63

Open
jmickle66666666 opened this issue May 12, 2018 · 0 comments
Open

Palette flashes/effect #63

jmickle66666666 opened this issue May 12, 2018 · 0 comments
Labels

Comments

@jmickle66666666
Copy link
Owner

So in order to get palette flashes working, I think the shader needs to be reworked into two parts:

  • The texture shader should output palette indexes rather than colors
  • A post-processing shader will transform the indexes into colors, with a swappable palette.

Some considerations:

  • Should the texture shader use a colormap? effects like the invulnerability might require the post-processing shader to use the colormap instead. If so, then the texture shader should output the lightlevel in another channel. (Red: palette index, Green: brightness)

  • Truecolor textures will need to use a LUT to convert the color into a palette index, meaning truecolor textures will no longer render as truecolor.

  • An option to use a truecolor shader instead of paletted?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant