KK-Blender-Porter-Pack icon indicating copy to clipboard operation
KK-Blender-Porter-Pack copied to clipboard

Shadow color in KK and it's relation to the detail color in KKBP

Open MediaMoots opened this issue 3 years ago • 4 comments

The shadow color in KK effects the color corresponding to the detail color in KKBP shaders. Examples: image image image image image image

MediaMoots avatar Sep 23 '21 11:09 MediaMoots

~~Wait a sec, is the Shadow Color THE Detail Color!?~~ After some testing, it doesn't seem to be the case.

MediaMoots avatar Sep 23 '21 11:09 MediaMoots

According to this it works differently for clothes vs hair: https://files.catbox.moe/krx49k.pdf I don't know how it works in koikatsu, but in blender the color is just replaced with a mix node

FlailingFog avatar Sep 26 '21 14:09 FlailingFog

Ok, thanks for the resource. So, is it possible to replicate the shadow color in KKBP (For hair/clothes, etc...)? And does this mean that the detail color and Shadow color are 2 separate things?

MediaMoots avatar Sep 26 '21 14:09 MediaMoots

@MediaMoots I've been looking into this recently using the shader files you had linked a while back. I think the shadow version of the color is found in the diffuseShadow variable from lines 302 to 437 of this file: https://github.com/xukmi/KKShadersPlus/blob/main/Shaders/Item/MainItemPlus.shader

I'm aiming to use this to replicate the shadow colors. From the shader code, it seems that the shadow color is used in the detail color generation.

FlailingFog avatar Jul 30 '22 17:07 FlailingFog