Skip to content

Commit

Permalink
Missed a file in the last commit (SSAO fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterTh committed Sep 19, 2012
1 parent f3b050a commit faa4581
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions DATA/dsfix/VSSAO.fx
Original file line number Diff line number Diff line change
Expand Up @@ -257,9 +257,6 @@ float4 VBlur( VSOUT IN ) : COLOR0 {
//return lerp(blurred, color, factor);
}

static const float sampleWeights[3] = { 0.2270270270, 0.3162162162, 0.0702702703 };
static const float sampleOffsets[3] = { 0.0, 1.3846153846, 3.2307692308 };

float4 Combine( VSOUT IN ) : COLOR0 {
float3 color = tex2D(frameSampler, IN.UVCoord).rgb;
float ao = tex2D(passSampler, IN.UVCoord/scale).r;
Expand All @@ -286,20 +283,48 @@ technique t0
{
VertexShader = compile vs_3_0 FrameVS();
PixelShader = compile ps_3_0 ssao_Main();
ZEnable = false;
ZWriteEnable = false;
AlphaBlendEnable = false;
AlphaTestEnable = false;
StencilEnable = false;
Clipping = false;
CullMode = NONE;
}
pass p1
{
VertexShader = compile vs_3_0 FrameVS();
PixelShader = compile ps_3_0 HBlur();
ZEnable = false;
ZWriteEnable = false;
AlphaBlendEnable = false;
AlphaTestEnable = false;
StencilEnable = false;
Clipping = false;
CullMode = NONE;
}
pass p2
{
VertexShader = compile vs_3_0 FrameVS();
PixelShader = compile ps_3_0 VBlur();
ZEnable = false;
ZWriteEnable = false;
AlphaBlendEnable = false;
AlphaTestEnable = false;
StencilEnable = false;
Clipping = false;
CullMode = NONE;
}
pass p3
{
VertexShader = compile vs_1_1 FrameVS();
PixelShader = compile ps_2_0 Combine();
ZEnable = false;
ZWriteEnable = false;
AlphaBlendEnable = false;
AlphaTestEnable = false;
StencilEnable = false;
Clipping = false;
CullMode = NONE;
}
}

0 comments on commit faa4581

Please sign in to comment.