mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Bloom Tweaks
This commit is contained in:
parent
ecf7298c68
commit
963d226f43
|
|
@ -85,12 +85,7 @@ singleton GFXStateBlockData( BloomPostFX_SampleStateBlock : PFX_DefaultStateBloc
|
|||
};
|
||||
|
||||
singleton GFXStateBlockData( BloomPostFX_Add_SampleStateBlock : PFX_DefaultStateBlock )
|
||||
{
|
||||
alphaDefined = true;
|
||||
alphaTestEnable = true;
|
||||
alphaTestRef = 1;
|
||||
alphaTestFunc = GFXCmpGreaterEqual;
|
||||
|
||||
{
|
||||
// Do a one to one blend.
|
||||
blendDefined = true;
|
||||
blendEnable = true;
|
||||
|
|
|
|||
|
|
@ -45,7 +45,6 @@ float4 main(PFXVertToPix IN) : TORQUE_TARGET0
|
|||
|
||||
#if defined(USE_DIRT)
|
||||
upSample.rgb += upSample.rgb * dirt;
|
||||
//upSample.rgb = dirt;
|
||||
#endif
|
||||
|
||||
return upSample;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@ float4 main(PFXVertToPix IN) : TORQUE_TARGET0
|
|||
{
|
||||
float4 screenColor = TORQUE_TEX2D(inputTex, IN.uv0);
|
||||
float brightness = max(screenColor.r, max(screenColor.g, screenColor.b));
|
||||
float contribution = pow(brightness, threshold * 10.0f);
|
||||
contribution /= max(brightness, 0.0001f);
|
||||
float contribution = saturate(brightness - threshold);
|
||||
return screenColor * contribution;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,11 +1,14 @@
|
|||
$PostFX::BloomPostFX::Enabled = "1";
|
||||
$PostFX::BloomPostFX::threshold = "0.721153855";
|
||||
$PostFX::BloomPostFX::intensity = "0.5";
|
||||
$PostFX::BloomPostFX::radius = "8";
|
||||
$PostFX::BloomPostFX::threshold = "0.403846145";
|
||||
$PostFX::BloomPostFX::intensity = "1";
|
||||
$PostFX::BloomPostFX::radius = "4";
|
||||
$PostFX::BloomPostFX::dirtEnabled = "1";
|
||||
$PostFX::BloomPostFX::dirtScale = 2048;
|
||||
$PostFX::BloomPostFX::dirtIntensity = "2";
|
||||
$PostFX::BloomPostFX::dirtIntensity = "10";
|
||||
$PostFX::BloomPostFX::dirtImage = "core/postFX/images/lensDirt.png";
|
||||
$PostFX::BloomPostFX::dirtEdgeMinDist = "0.125";
|
||||
$PostFX::BloomPostFX::dirtEdgeMaxDist = "0.75";
|
||||
$PostFX::BloomPostFX::dirtEdgeMinVal = "0.057692308";
|
||||
$PostFX::HDRPostFX::Enabled = 1;
|
||||
$PostFX::HDRPostFX::exposureValue = 1;
|
||||
$PostFX::HDRPostFX::minLuminace = 0.001;
|
||||
|
|
|
|||
Loading…
Reference in a new issue