This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //these might be linear colors | |
| //Morning Frost (1) | |
| _SkinTintColor 0.90466, 0.87962, 0.83077 | |
| _SkinTintSecondColor 0.75294, 0.18447, 0.13843 | |
| _SkinTintColorOutlineLerp 0.717 | |
| _FirstShadowMultColor 0.89627, 0.64448, 0.5972 | |
| _CoolShadowMultColor 0.80695, 0.57758, 0.53948 | |
| //Moon Shadow (2) | |
| _SkinTintColor 1.00, 0.90466, 0.9131 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| float3 face_uv = 0; | |
| float lx = dot(-light_d, mul(float3(1,0,0), (float3x3)head_bone)); // do not invert light_dir in other software that isn't MMD | |
| float lz = dot(-light_d, mul(float3(0,0,-1), (float3x3)head_bone)); | |
| float minAbs = min(abs(lz), abs(lx)); | |
| float maxAbs = max(abs(lz), abs(lx)); | |
| float invMax = 1.0 / maxAbs; | |
| float ratio = minAbs * invMax; | |
| float ratio2 = ratio * ratio; |