33 lines
1.8 KiB
INI
33 lines
1.8 KiB
INI
[Config]
|
|
# Patches to remove glitching with modern GPUs.
|
|
# Appropriate patches will automatically be selected based on your GPU.
|
|
Compat=1
|
|
|
|
# Lyb's toon shader improvements (24 sept 2019)
|
|
# Toon: Set to `0.9, -0.5` (or another pair of values) to use
|
|
Toon=0
|
|
# Toon_Eyes: Set to anything except 0 to use
|
|
Toon_Eyes=0
|
|
# Toon_Hair: Set to `1.25` (or another value) to use
|
|
Toon_Hair=0
|
|
# Toon_Lines1: Set to `0.75` (or another value) to use
|
|
Toon_Lines1=0
|
|
# Toon_Lines2: Set to `0.75, 0.75` (or another pair of values) to use
|
|
Toon_Lines2=0
|
|
|
|
[Patches]
|
|
# Compatibility patches:
|
|
# Star Story (and etc.) stage corruption (Maxwell+)
|
|
blinn_per_vert\.0010010[23]00[01]\.fp=arch:GP,TU,GV,GM||cfg:compat||from:TEX tex_col, a_tex_color0, texture\[0\], 2D; ALIAS||to:TEX tex_col, a_tex_color0, texture[0], 2D; MUL tex_col, 1, tex_col; ALIAS
|
|
# Turing shading lines
|
|
esm_gauss\.0\.fp=arch:TU||cfg:compat||from:RCP sum.y, sum.y;(\r?\n) MUL||to:RCP sum.y, sum.y; ADD sum.x, sum.x, 0.000300;$1 MUL
|
|
# Turing NPR cloth noise
|
|
cloth_npr1\.fp=arch:TU||cfg:compat||from:SSG _tmp0.yw, ybr.xxzz;||to:TEMP _tmpForSSG; SGE _tmpForSSG.xz, ybr.xxzz, 0; SUB _tmpForSSG.xz, _tmpForSSG.xxzz, 1; SGT _tmpForSSG.yw, ybr.xxzz, 0; ADD _tmp0.yw, _tmpForSSG.xxzz, _tmpForSSG.yyww;
|
|
|
|
# Lyb's toon shader improvements:
|
|
.*cloth_npr.*=cfg:toon||from:MAD tmp.y, lc.z, 1.2, -0.5;||to:MAD tmp.y, lc.z, <cfg>;
|
|
.*skin_default.*=cfg:toon||from:MAD diff.xyz, spec, spec_ratio, diff;||to:
|
|
.*eye.*=cfg:toon_eyes||from:ADD o_color_f0.w, diff.x, diff.y;||to:
|
|
.*hair_npr1.*=cfg:toon_hair||from:MUL spec.x, tmp.x, 0.7;||to:MUL spec.x, tmp.x, 0.7; MUL diff, diff, <cfg>;
|
|
.*tone_map_npr1.*=cfg:toon_lines1||from:MUL density.y, density.y, 0.25;||to:MUL density.y, density.y, <cfg>;
|
|
.*tone_map_npr1.*=cfg:toon_lines2||from:MAD density.w, density.x, 0.7, 0.25;||to:MAD density.w, density.x, <cfg>; |