PLEASE DOWNLOAD FROM RELEASES AND NOT CLONE THE SOURCE CODE IF YOU'RE NOT EDITING THE SHADER
also read the readme on here... I'd rather not have bug reports just me telling you the shader usage is wrong
Now I can't say I understand why you'd want to use this shader with genshin models
and I'm not saying you can't, But I will say unless the errors partain to Fischl or Keqing (those who actually appeared in honkai)
Any and all bug reports related to genshin models will be disregarded as it's technically not the intended use for this shader
I apologize for any inconveniences
I am not fixing anything if you use this shader on models that were not datamined
I will also not go over how to datamine said models you're on your own there
Manashiku - For their Facemap code and in general helping me out!
Usage in Ray-MMD
Putting this here incase you already know how to use the shader (see below if you don't)
It's rather simple just load ray.x and then in ray's materials tab set the model to skybox
The model won't interact with directional lights anymore so keep this in mind
in PMX you'll set your Lightmap texture in sph and set that material to Sub_Texture
if there is no lightmap set this material to Disabled
if your mesh is a Face mesh set the lightmap in sph like usual and FaceMap in toon and set it to +add or any other avaliable sph type
Shader already has flags in place to handle everything for you
then move colormask and/or eye star into sub/textures and input them into the proper meshes you need them on (optional)
Now you'll want to rip the Material files from the game and apply everything that's avaliable (or guess if you want I guess)
you should be good to go from there!
Please report any and all (potential) bugs to Isuees or my discord (cbtdwg) or if you want to help out with the shader's accuracy
-
Please credit me (Chi, Chips, Chizukimo) for the shader or call it by name
-
Do not produce r-18 content with this shader (I'm not having a debate on ages)
-
You are allowed to modify this shader to your hearts content
-
You may distribute the edited Material.fx file for convenience but if you didn't edit the main shader (shader.fxh/sub folder) Please link to here instead
Honkai Impact much like Genshin (and other affiliated games) uses custom normals for their outlines HOWEVER honkai is a bit messy with their normals so you'll most likely have to fix it manually
and since mmd can't dedicate the tangent slot like most other programs (typical mmd L)
Fortunately not ALL models are like this just a handful
Examples of incorrect provided
Incorrect
Correct
PMXE visualization
Incorrect
Correct
This would also be a problem regardless of if you don't use mmd or not so any adaptations will need to completely remake custom normals either way
but in short make sure the INSIDE of the hair normals is reversed rather than facing the same direction as the outer layer