|
@@ -60,8 +60,8 @@ $PostFX::HDRPostFX::adaptRate = 0.85;
|
|
|
// http://www.iryoku.com/next-generation-post-processing-in-call-of-duty-advanced-warfare
|
|
|
|
|
|
$PostFX::HDRPostFX::enableBloom = true;
|
|
|
-$PostFX::HDRPostFX::threshold = 0.0;
|
|
|
-$PostFX::HDRPostFX::intensity = 1.0;
|
|
|
+$PostFX::HDRPostFX::threshold = 1.25;
|
|
|
+$PostFX::HDRPostFX::intensity = 0.25;
|
|
|
$PostFX::HDRPostFX::radius = 4.0;
|
|
|
|
|
|
$PostFX::HDRPostFX::enableDirt = true;
|
|
@@ -85,6 +85,7 @@ singleton ShaderData( HDR_BloomInitShader )
|
|
|
OGLPixelShaderFile = "./HDR_Bloom/bloomInitSample.glsl";
|
|
|
|
|
|
samplerNames[0] = "$inputTex";
|
|
|
+ samplerNames[1] = "$luminanceTex";
|
|
|
|
|
|
pixVersion = 3.0;
|
|
|
};
|
|
@@ -444,7 +445,7 @@ function HDRPostFX::populatePostFXSettings(%this)
|
|
|
// /----- BLOOM SETTINGS -----/
|
|
|
PostEffectEditorInspector.startGroup("HDR - Bloom");
|
|
|
PostEffectEditorInspector.addField("$PostFX::HDRPostFX::enableBloom", "Enable Bloom", "bool", "", $PostFX::HDRPostFX::enableBloom, "");
|
|
|
- PostEffectEditorInspector.addField("$PostFX::HDRPostFX::threshold", "Threshold", "range", "", $PostFX::HDRPostFX::threshold, "0 1 10");
|
|
|
+ PostEffectEditorInspector.addField("$PostFX::HDRPostFX::threshold", "Threshold", "range", "", $PostFX::HDRPostFX::threshold, "0 2 10");
|
|
|
PostEffectEditorInspector.addField("$PostFX::HDRPostFX::intensity", "Intensity", "range", "", $PostFX::HDRPostFX::intensity, "0 10 10");
|
|
|
PostEffectEditorInspector.addField("$PostFX::HDRPostFX::radius", "Radius", "float", "", $PostFX::HDRPostFX::radius, "");
|
|
|
PostEffectEditorInspector.endGroup();
|
|
@@ -582,9 +583,9 @@ function HDRPostFX::SetupBloomFX( %this )
|
|
|
target = "#hdrbloom_end";
|
|
|
targetFormat = %this.mipTexFormat;
|
|
|
};
|
|
|
- %this.add(%finalFX);
|
|
|
|
|
|
%this.add(%bloomFX);
|
|
|
+ %this.add(%finalFX);
|
|
|
}
|
|
|
|
|
|
singleton PostEffect( HDRPostFX )
|