Skip to content

Cel shading shader: Switch to regular shader parameters#2163

Open
manuq wants to merge 1 commit into
mainfrom
townies-material
Open

Cel shading shader: Switch to regular shader parameters#2163
manuq wants to merge 1 commit into
mainfrom
townies-material

Conversation

@manuq
Copy link
Copy Markdown
Collaborator

@manuq manuq commented May 6, 2026

Do not rely on instance shader parameters for recoloring. Instead, make the material unique when a different recolor is needed. For instance, by duplicating the cel_shading_recolor_material.tres.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Play this branch at https://play.threadbare.game/branches/endlessm/townies-material/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 14, 2026

I had to refresh in my mind what I was attempting here. It seems to work now, I will clean and put it for review tomorrow!

@manuq manuq force-pushed the townies-material branch 2 times, most recently from fbffb53 to 89bedfa Compare May 15, 2026 15:02
Do not rely on instance shader parameters for recoloring. Instead, make the
material unique when a different recolor is needed. For instance, by duplicating
the cel_shading_recolor_material.tres.

Now the way to have the same recoloring in multiple sprites is to share the same
material.

Townie: have a duplicate copy of the cel shading recolor material. Apply it to all
the parts.
@manuq manuq force-pushed the townies-material branch from 89bedfa to 86b9852 Compare May 15, 2026 15:18
@manuq manuq marked this pull request as ready for review May 15, 2026 15:20
@manuq manuq requested a review from a team as a code owner May 15, 2026 15:20
@manuq
Copy link
Copy Markdown
Collaborator Author

manuq commented May 15, 2026

Ready for review. This one was tricky, but is a first step towards a more generic palette swap (hair, clothes).

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant