xivdev / Penumbra

FINAL FANTASY XIV modding, but actually good this time
656 stars 123 forks source link

Mtrl shader resource editing, ShPk editing #284

Closed Exter-N closed 1 year ago

Exter-N commented 1 year ago

:warning: Trying to load a Mtrl that doesn't have all the type 2 samplers declared by the actual shaders of the linked ShPk will crash the game: this is not new and probably the cause of crashes people had when they tried to change a Mtrl's ShPk.

aers commented 1 year ago

This might help with all those shpk unknowns https://gist.github.com/aers/966fd08c190f1e03c87253baa4a6a12d

aers commented 1 year ago

I haven't really read much but I assume you're aware all the keys are just CRCs.

This is a 2-year old dump of CRCs and all the names I could match. Unfortunately the material keys are not instantiated at runtime by the game so those are basically all missing.

They can probably be brute forced.

https://gist.github.com/aers/4c9241fa0c23eeb594a9a4009ecdb89d