MariENB 1.2015.6.30
This commit is contained in:
parent
a00a0e3541
commit
95c324cfa0
10 changed files with 161 additions and 255 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 4 KiB |
|
|
@ -225,6 +225,8 @@ float3 GradingLUT( float3 res )
|
|||
float3 tcl2 = tex2D(SamplerLUT,lc2);
|
||||
tcol = lerp(tcl1,tcl2,dec);
|
||||
tcol = (tcol-0.0625)/0.875;
|
||||
float lutblend = lerp(lerp(lutblend_n,lutblend_d,tod),lerp(lutblend_in,
|
||||
lutblend_id,tod),ind);
|
||||
return lerp(res,tcol,lutblend);
|
||||
}
|
||||
/* classic ENB palette colour grading */
|
||||
|
|
@ -262,25 +264,6 @@ float3 Dither( float3 res, float2 coord )
|
|||
col = (trunc(col*256.0)/256.0);
|
||||
return col;
|
||||
}
|
||||
/* darken borders */
|
||||
float3 Vignette( float3 res, float2 coord )
|
||||
{
|
||||
float dkradius = lerp(lerp(dkradius_n,dkradius_d,tod),lerp(dkradius_in,
|
||||
dkradius_id,tod),ind);
|
||||
float dkbump = lerp(lerp(dkbump_n,dkbump_d,tod),lerp(dkbump_in,
|
||||
dkbump_id,tod),ind);
|
||||
float dkcurve = lerp(lerp(dkcurve_n,dkcurve_d,tod),lerp(dkcurve_in,
|
||||
dkcurve_id,tod),ind);
|
||||
float val = distance(coord,0.5)*2.0+dkradius;
|
||||
val = saturate(val+dkbump);
|
||||
return lerp(res,float3(0,0,0),pow(val,dkcurve));
|
||||
}
|
||||
/* letterbox filter */
|
||||
float3 Letterbox( float3 res, float2 coord )
|
||||
{
|
||||
if ( abs(2.0*coord.y-1.0) > boxv ) return float3(0,0,0);
|
||||
return res;
|
||||
}
|
||||
/* Fuzzy */
|
||||
float3 FilmGrain( float3 res, float2 coord )
|
||||
{
|
||||
|
|
@ -353,8 +336,6 @@ float4 PS_Mari( VS_OUTPUT_POST IN, float2 vPos : VPOS ) : COLOR
|
|||
if ( !tintbeforegrade && tintenable ) res.rgb = Tint(res.rgb);
|
||||
if ( fadebeforefilm ) res.rgb = _r5.rgb*_r5.a + res.rgb*(1.0-_r5.a);
|
||||
if ( ne ) res.rgb = FilmGrain(res.rgb,coord);
|
||||
if ( dkenable ) res.rgb = Vignette(res.rgb,coord);
|
||||
if ( boxenable ) res.rgb = Letterbox(res.rgb,coord);
|
||||
if ( !fadebeforefilm ) res.rgb = _r5.rgb*_r5.a + res.rgb*(1.0-_r5.a);
|
||||
if ( dodither ) res.rgb = Dither(res.rgb,coord);
|
||||
res.rgb = max(0,res.rgb);
|
||||
|
|
|
|||
|
|
@ -4,97 +4,6 @@
|
|||
Part of MariENB, the personal ENB of Marisa.
|
||||
Released under the GNU GPLv3 (or later).
|
||||
*/
|
||||
/* Border darkening */
|
||||
bool dkenable
|
||||
<
|
||||
string UIName = "UseDark";
|
||||
string UIWidget = "Checkbox";
|
||||
> = {false};
|
||||
/* radius of darkening (relative to screen width) */
|
||||
float dkradius_n
|
||||
<
|
||||
string UIName = "DarkRadiusNight";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {0.25};
|
||||
float dkradius_d
|
||||
<
|
||||
string UIName = "DarkRadiusDay";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {0.25};
|
||||
float dkradius_in
|
||||
<
|
||||
string UIName = "DarkRadiusInteriorNight";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {0.25};
|
||||
float dkradius_id
|
||||
<
|
||||
string UIName = "DarkRadiusInteriorDay";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {0.25};
|
||||
/* falloff of darkening */
|
||||
float dkcurve_n
|
||||
<
|
||||
string UIName = "DarkCurveNight";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {1.2};
|
||||
float dkcurve_d
|
||||
<
|
||||
string UIName = "DarkCurveDay";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {1.2};
|
||||
float dkcurve_in
|
||||
<
|
||||
string UIName = "DarkCurveInteriorNight";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {1.2};
|
||||
float dkcurve_id
|
||||
<
|
||||
string UIName = "DarkCurveInteriorDay";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {1.2};
|
||||
/* bump of darkening */
|
||||
float dkbump_n
|
||||
<
|
||||
string UIName = "DarkBumpNight";
|
||||
string UIWidget = "Spinner";
|
||||
> = {-0.75};
|
||||
float dkbump_d
|
||||
<
|
||||
string UIName = "DarkBumpDay";
|
||||
string UIWidget = "Spinner";
|
||||
> = {-0.75};
|
||||
float dkbump_in
|
||||
<
|
||||
string UIName = "DarkBumpInteriorNight";
|
||||
string UIWidget = "Spinner";
|
||||
> = {-0.75};
|
||||
float dkbump_id
|
||||
<
|
||||
string UIName = "DarkBumpInteriorDay";
|
||||
string UIWidget = "Spinner";
|
||||
> = {-0.75};
|
||||
/* Letterbox */
|
||||
bool boxenable
|
||||
<
|
||||
string UIName = "UseBox";
|
||||
string UIWidget = "Checkbox";
|
||||
> = {false};
|
||||
/* vertical factor */
|
||||
float boxv
|
||||
<
|
||||
string UIName = "BoxVertical";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
float UIMax = 1.0;
|
||||
> = {0.8};
|
||||
/* film grain */
|
||||
bool ne
|
||||
<
|
||||
|
|
@ -834,9 +743,24 @@ bool lutenable
|
|||
string UIName = "EnableLUTGrading";
|
||||
string UIWidget = "Checkbox";
|
||||
> = {false};
|
||||
float lutblend
|
||||
float lutblend_n
|
||||
<
|
||||
string UIName = "LUTBlend";
|
||||
string UIName = "LUTBlendNight";
|
||||
string UIWidget = "Spinner";
|
||||
> = {1.0};
|
||||
float lutblend_d
|
||||
<
|
||||
string UIName = "LUTBlendDay";
|
||||
string UIWidget = "Spinner";
|
||||
> = {1.0};
|
||||
float lutblend_in
|
||||
<
|
||||
string UIName = "LUTBlendInteriorNight";
|
||||
string UIWidget = "Spinner";
|
||||
> = {1.0};
|
||||
float lutblend_id
|
||||
<
|
||||
string UIName = "LUTBlendInteriorDay";
|
||||
string UIWidget = "Spinner";
|
||||
> = {1.0};
|
||||
int clut
|
||||
|
|
|
|||
Reference in a new issue