Skip to content

Commit

Permalink
Move FXAA stage to be earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
Xottab-DUTY committed May 1, 2018
1 parent 0a4b826 commit 1097892
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
9 changes: 5 additions & 4 deletions src/Layers/xrRenderPC_R2/r2_rendertarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,11 @@ CRenderTarget::CRenderTarget()
f_bloom_factor = 0.5f;
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);


// HBAO
if (RImplementation.o.ssao_opt_data)
{
Expand All @@ -376,10 +381,6 @@ CRenderTarget::CRenderTarget()
s_ssao.create(b_ssao, "r2\\ssao");
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);

// SSAO
if (RImplementation.o.ssao_blur_on)
{
Expand Down
8 changes: 4 additions & 4 deletions src/Layers/xrRenderPC_R3/r3_rendertarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,10 @@ CRenderTarget::CRenderTarget()
u_setrt(Device.dwWidth, Device.dwHeight, HW.pBaseRT, NULL, NULL, HW.pBaseZB);
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);

// HBAO
if (RImplementation.o.ssao_opt_data)
{
Expand All @@ -649,10 +653,6 @@ CRenderTarget::CRenderTarget()
s_ssao.create(b_ssao, "r2\\ssao");
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);

if (RImplementation.o.ssao_blur_on)
{
u32 w = Device.dwWidth, h = Device.dwHeight;
Expand Down
7 changes: 4 additions & 3 deletions src/Layers/xrRenderPC_R4/r4_rendertarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ CRenderTarget::CRenderTarget()
u_setrt(Device.dwWidth, Device.dwHeight, HW.pBaseRT, NULL, NULL, HW.pBaseZB);
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);

// HBAO
if (RImplementation.o.ssao_opt_data)
{
Expand All @@ -658,9 +662,6 @@ CRenderTarget::CRenderTarget()
s_ssao.create(b_ssao, "r2\\ssao");
}

//FXAA
s_fxaa.create(b_fxaa, "r3\\fxaa");
g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB);

// XXX: Xottab_DUTY: find out why it's available on R3, but commented here
// if (RImplementation.o.ssao_blur_on)
Expand Down

0 comments on commit 1097892

Please sign in to comment.