MariENB 1.2015.5.1
This commit is contained in:
parent
4d6c0f69fb
commit
0e69aeb0bc
5 changed files with 11 additions and 35 deletions
|
|
@ -300,30 +300,17 @@ float3 FilmGrain( float3 res, float2 coord )
|
||||||
}
|
}
|
||||||
return lerp(res,nt,ni);
|
return lerp(res,nt,ni);
|
||||||
}
|
}
|
||||||
/* REVOLUTIONARY ULTRA-AWESOME FILTER */
|
|
||||||
float3 Aberration( sampler2D smp, float2 coord )
|
|
||||||
{
|
|
||||||
float3 eta = float3(1+chromaab*0.09,1+chromaab*0.06,1+chromaab*0.03);
|
|
||||||
float2 mid = coord-0.5;
|
|
||||||
float2 rc = eta.r*(1.0-chromaab*0.1)*mid+0.5;
|
|
||||||
float2 gc = eta.g*(1.0-chromaab*0.1)*mid+0.5;
|
|
||||||
float2 bc = eta.b*(1.0-chromaab*0.1)*mid+0.5;
|
|
||||||
float3 ab = float3(tex2D(smp,rc).r,tex2D(smp,gc).g,tex2D(smp,bc).b);
|
|
||||||
return ab;
|
|
||||||
}
|
|
||||||
/* MariENB shader */
|
/* MariENB shader */
|
||||||
float4 PS_Mari( VS_OUTPUT_POST IN, float2 vPos : VPOS ) : COLOR
|
float4 PS_Mari( VS_OUTPUT_POST IN, float2 vPos : VPOS ) : COLOR
|
||||||
{
|
{
|
||||||
float2 coord = IN.txcoord0.xy;
|
float2 coord = IN.txcoord0.xy;
|
||||||
float4 res = tex2D(_s0,coord);
|
float4 res = tex2D(_s0,coord);
|
||||||
if ( usecurve ) res.rgb = Aberration(_s0,coord);
|
|
||||||
if ( aenable ) res.rgb = Adaptation(res.rgb);
|
if ( aenable ) res.rgb = Adaptation(res.rgb);
|
||||||
if ( tmapenable && tmapbeforecomp ) res.rgb = Tonemap(res.rgb);
|
if ( tmapenable && tmapbeforecomp ) res.rgb = Tonemap(res.rgb);
|
||||||
if ( compenable ) res.rgb = Compensate(res.rgb);
|
if ( compenable ) res.rgb = Compensate(res.rgb);
|
||||||
if ( tmapenable && !tmapbeforecomp ) res.rgb = Tonemap(res.rgb);
|
if ( tmapenable && !tmapbeforecomp ) res.rgb = Tonemap(res.rgb);
|
||||||
if ( bloomdebug ) res.rgb *= 0;
|
if ( bloomdebug ) res.rgb *= 0;
|
||||||
if ( usecurve ) res.rgb += Aberration(_s3,coord)*EBloomAmount;
|
res.rgb += tex2D(_s3,coord).rgb*EBloomAmount;
|
||||||
else res += tex2D(_s3,coord)*EBloomAmount;
|
|
||||||
if ( tintbeforegrade && tintenable ) res.rgb = Tint(res.rgb);
|
if ( tintbeforegrade && tintenable ) res.rgb = Tint(res.rgb);
|
||||||
if ( vgradeenable ) res.rgb = GradingGame(res.rgb);
|
if ( vgradeenable ) res.rgb = GradingGame(res.rgb);
|
||||||
if ( gradeenable1 ) res.rgb = GradingRGB(res.rgb);
|
if ( gradeenable1 ) res.rgb = GradingRGB(res.rgb);
|
||||||
|
|
|
||||||
|
|
@ -205,18 +205,6 @@ float nj
|
||||||
string UIWidget = "Spinner";
|
string UIWidget = "Spinner";
|
||||||
float UIMin = 0.0;
|
float UIMin = 0.0;
|
||||||
> = {2.0};
|
> = {2.0};
|
||||||
/* use curvature + chromatic aberration filter */
|
|
||||||
bool usecurve
|
|
||||||
<
|
|
||||||
string UIName = "UseCurve";
|
|
||||||
string UIWidget = "Checkbox";
|
|
||||||
> = {false};
|
|
||||||
/* this is a stupid filter and you should feel bad for using it */
|
|
||||||
float chromaab
|
|
||||||
<
|
|
||||||
string UIName = "CurveChromaAberration";
|
|
||||||
string UIWidget = "Spinner";
|
|
||||||
> = {0.05};
|
|
||||||
/* "adaptation" factors */
|
/* "adaptation" factors */
|
||||||
bool aenable
|
bool aenable
|
||||||
<
|
<
|
||||||
|
|
|
||||||
|
|
@ -85,10 +85,6 @@ texture2D texNoise3
|
||||||
<
|
<
|
||||||
string ResourceName = "menbnoise2.png";
|
string ResourceName = "menbnoise2.png";
|
||||||
>;
|
>;
|
||||||
texture2D texWater
|
|
||||||
<
|
|
||||||
string ResourceName = "menbwater.png";
|
|
||||||
>;
|
|
||||||
texture2D texHeat
|
texture2D texHeat
|
||||||
<
|
<
|
||||||
string ResourceName = "menbheat.png";
|
string ResourceName = "menbheat.png";
|
||||||
|
|
|
||||||
|
|
@ -17,10 +17,10 @@ BloomPowerNight=0.74
|
||||||
BloomPowerDay=0.78
|
BloomPowerDay=0.78
|
||||||
BloomPowerInteriorNight=0.76
|
BloomPowerInteriorNight=0.76
|
||||||
BloomPowerInteriorDay=0.72
|
BloomPowerInteriorDay=0.72
|
||||||
BloomSaturationNight=0.76
|
BloomSaturationNight=0.7
|
||||||
BloomSaturationDay=0.66
|
BloomSaturationDay=0.64
|
||||||
BloomSaturationInteriorNight=0.8
|
BloomSaturationInteriorNight=0.74
|
||||||
BloomSaturationInteriorDay=0.72
|
BloomSaturationInteriorDay=0.68
|
||||||
BloomBumpNight=-0.37
|
BloomBumpNight=-0.37
|
||||||
BloomBumpDay=-0.52
|
BloomBumpDay=-0.52
|
||||||
BloomBumpInteriorNight=-0.35
|
BloomBumpInteriorNight=-0.35
|
||||||
|
|
@ -74,7 +74,7 @@ AnamLengthMultiplier=4.0
|
||||||
BloomAngle=0.0
|
BloomAngle=0.0
|
||||||
BloomVertical=false
|
BloomVertical=false
|
||||||
BloomHQBlur=false
|
BloomHQBlur=false
|
||||||
EnableLensDirt=true
|
EnableLensDirt=false
|
||||||
DirtMix1=0.04
|
DirtMix1=0.04
|
||||||
DirtMix2=0.08
|
DirtMix2=0.08
|
||||||
DirtMix3=0.21
|
DirtMix3=0.21
|
||||||
|
|
|
||||||
|
|
@ -158,3 +158,8 @@ DitherPattern=4
|
||||||
DebugRegisters=false
|
DebugRegisters=false
|
||||||
DebugRegistersScale=5.0
|
DebugRegistersScale=5.0
|
||||||
DebugBloom=false
|
DebugBloom=false
|
||||||
|
UseChromaAberration=false
|
||||||
|
ChromaAberration=0.01
|
||||||
|
ChromaAberrationOverbright=0.0
|
||||||
|
ChromaAberrationOverbrightMax=4.0
|
||||||
|
ChromaAberrationOverbrightMin=0.8
|
||||||
|
|
|
||||||
Reference in a new issue