Skip to content

Palette flashes/effect #63

Description

@jmickle66666666

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions