MariENB 1.2015.10.10
This commit is contained in:
parent
a5626ec457
commit
0a52e01d58
7 changed files with 108 additions and 99 deletions
|
|
@ -21,13 +21,6 @@ VS_OUTPUT_POST VS_Pass( VS_INPUT_POST IN )
|
|||
/* these are znear/zfar values for Skyrim, but MAY match Fallout too */
|
||||
float depthlinear( float2 coord )
|
||||
{
|
||||
/*
|
||||
These values seem to be used by pretty much all Skyrim ENB presets.
|
||||
Since it's practically impossible for me to know the real znear and
|
||||
zfar values for each game, I'll just use these and hope it goes well
|
||||
*/
|
||||
float zNear = 0.0509804;
|
||||
float zFar = 3098.0392;
|
||||
float z = tex2D(SamplerDepth,coord).x;
|
||||
return (2*zNear)/(zFar+zNear-z*(zFar-zNear));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,18 @@ float cutoff
|
|||
float UIMin = 0.0;
|
||||
float UIMax = 1000000.0;
|
||||
> = {999949.0};
|
||||
float zNear
|
||||
<
|
||||
string UIName = "Near Z";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {0.05};
|
||||
float zFar
|
||||
<
|
||||
string UIName = "Far Z";
|
||||
string UIWidget = "Spinner";
|
||||
float UIMin = 0.0;
|
||||
> = {3098.0};
|
||||
string str_dist = "Distortion Filters";
|
||||
float distcha
|
||||
<
|
||||
|
|
|
|||
Reference in a new issue