GTAvaCrypt icon indicating copy to clipboard operation
GTAvaCrypt copied to clipboard

Allow integration of other shaders again

Open Ess-Ka opened this issue 2 years ago • 3 comments

I was able to successfully implement GTAvaCrypt V2.1 for other shaders (Sunao/UTS/XSToon). I've added the _BitKeys to the shaders and the GTModelDecode.cginc include. During encryption, GTAvaCrypt updated every GTModelDecode.cginc in the project. This worked for me with many type of shaders at the same time.

In the current version, the EncryptMaterials method ignores any other shader than ".poiyomi/Poiyomi" 8. Is it possible to add an additional logic there, which works like for V2.1?

  • Check, if there are _BitKeys fields in the material/shader and enable encryption then
  • Update any GTModelDecode.cginc found in the project

Ess-Ka avatar Sep 10 '22 13:09 Ess-Ka

Ya I think this is a good idea to, I'll get the injection code consolidated to an interface to support multiples.

rygo6 avatar Sep 11 '22 03:09 rygo6

Perfect - this sounds good 👍

Ess-Ka avatar Sep 11 '22 11:09 Ess-Ka

Thank you. We need more shaders support just like @Ess-Ka says, and in additional, liltoon, UnityChanToonShader, Arktoon and more is needed. Poiyomi shader is not good for me because of it shading.

Sayoki-Yukina avatar Jan 22 '23 12:01 Sayoki-Yukina