Ongoing PostFX org rework.

This commit is contained in:
Areloch 2019-02-11 00:17:53 -06:00
parent ecad33c598
commit a1b281cc5f
6 changed files with 221 additions and 178 deletions

View file

@ -500,12 +500,12 @@ singleton PostEffect( reflectionProbeArrayPostFX )
//texture[0] = "#highlight";
//texture[1] = "$backBuffer";
texture[0] = "$deferredBuffer";
texture[1] = "$colorBuffer";
texture[2] = "$matInfoBuffer";
texture[0] = "#deferred";
texture[1] = "#color";
texture[2] = "#matinfo";
texture[3] = "$BRDFTexture";
texture[4] = "$cubeMap";
texture[5] = "$irradianceCubemap";
target = "$backBuffer";
target = "AL_FormatToken";
};

View file

@ -1,5 +1,6 @@
#include "../postFx.hlsl"
#include "../../postFx/postFx.hlsl"
#include "../../shaderModel.hlsl"
#include "../../shaderModelAutoGen.hlsl"
#include "../../lighting.hlsl"
TORQUE_UNIFORM_SAMPLER2D(deferredBuffer, 0);
@ -146,6 +147,9 @@ float4 main( PFXVertToPix IN ) : SV_TARGET
float finalSum = blendSum;
return TORQUE_TEX2D(colorBuffer, IN.uv0.xy);
//return float4(surface.N,1);
//return float4(1,1,1, 1);
//return float4(finalSum,finalSum,finalSum, 1);
// Normalize blendVal