|
@@ -103,23 +103,59 @@ singleton ShaderData( SMAA_Neighbor_H_Shader )
|
|
|
pixVersion = 3.0;
|
|
|
};
|
|
|
|
|
|
-singleton PostEffect( SMAAPostFX )
|
|
|
+singleton GFXStateBlockData( BBtoGamma_StateBlock )
|
|
|
+{
|
|
|
+ zDefined = true;
|
|
|
+ zEnable = false;
|
|
|
+ zWriteEnable = false;
|
|
|
+
|
|
|
+ samplersDefined = true;
|
|
|
+ samplerStates[0] = SamplerClampLinear;
|
|
|
+};
|
|
|
+
|
|
|
+singleton ShaderData( BBtoGammaShader )
|
|
|
{
|
|
|
- enabled = false;
|
|
|
+ DXVertexShaderFile = $Core::CommonShaderPath @ "/postFX/postFxV.hlsl";
|
|
|
+ DXPixelShaderFile = "./BBtoGamma.hlsl";
|
|
|
+ OGLVertexShaderFile = $Core::CommonShaderPath @ "/postFX/gl/postFxV.glsl";
|
|
|
+ OGLPixelShaderFile = "./gl/BBtoGamma.glsl";
|
|
|
|
|
|
- allowReflectPass = false;
|
|
|
- renderTime = "PFXAfterDiffuse";
|
|
|
+ samplerNames[0] = "$backBuffer";
|
|
|
|
|
|
- texture[0] = "$backBuffer";
|
|
|
- texture[1] = "#deferred";
|
|
|
+ pixVersion = 3.0;
|
|
|
+};
|
|
|
|
|
|
- target = "#edgesPass";
|
|
|
+singleton PostEffect( SMAAPostFX )
|
|
|
+{
|
|
|
+ enabled = false;
|
|
|
+ allowReflectPass = false;
|
|
|
+ renderTime = "PFXBeforeBin";
|
|
|
+ renderBin = "EditorBin";
|
|
|
+ texture[0] = "$backBuffer";
|
|
|
+ target = "#BBtoGamma";
|
|
|
+ renderPriority = 1;
|
|
|
targetClear = PFXTargetClear_OnDraw;
|
|
|
targetClearColor = "0 0 0 0";
|
|
|
+ shader = BBtoGammaShader;
|
|
|
+ stateBlock = BBtoGamma_StateBlock;
|
|
|
+
|
|
|
+ singleton PostEffect()
|
|
|
+ {
|
|
|
+ enabled = false;
|
|
|
|
|
|
- shader = SMAA_Edge_D_Shader;
|
|
|
- stateBlock = SMAA_Edge_D_StateBlock;
|
|
|
+ allowReflectPass = false;
|
|
|
+ renderTime = "PFXAfterDiffuse";
|
|
|
|
|
|
+ texture[0] = "#BBtoGamma";
|
|
|
+ texture[1] = "#deferred";
|
|
|
+
|
|
|
+ target = "#edgesPass";
|
|
|
+ targetClear = PFXTargetClear_OnDraw;
|
|
|
+ targetClearColor = "0 0 0 0";
|
|
|
+
|
|
|
+ shader = SMAA_Edge_D_Shader;
|
|
|
+ stateBlock = SMAA_Edge_D_StateBlock;
|
|
|
+ };
|
|
|
singleton PostEffect()
|
|
|
{
|
|
|
internalName = "Edge Pass";
|
|
@@ -141,7 +177,7 @@ singleton PostEffect( SMAAPostFX )
|
|
|
{
|
|
|
internalName = "BlendPass";
|
|
|
|
|
|
- texture[0] = "$backBuffer";
|
|
|
+ texture[0] = "#BBtoGamma";
|
|
|
texture[1] = "#blendPass";
|
|
|
|
|
|
target = "$backBuffer";
|