|
10 | 10 | #include "blender_bloom_build.h" |
11 | 11 | #include "blender_luminance.h" |
12 | 12 | #include "blender_ssao.h" |
| 13 | +#include "blender_fxaa.h" |
13 | 14 | #include "dx10MinMaxSMBlender.h" |
14 | 15 | #include "Layers/xrRenderDX10/msaa/dx10MSAABlender.h" |
15 | 16 | #include "Layers/xrRenderDX10/DX10 Rain/dx10RainBlender.h" |
@@ -320,6 +321,9 @@ CRenderTarget::CRenderTarget() |
320 | 321 | b_combine = new CBlender_combine(); |
321 | 322 | b_ssao = new CBlender_SSAO_noMSAA(); |
322 | 323 |
|
| 324 | + //FXAA |
| 325 | + b_fxaa = new CBlender_FXAA(); |
| 326 | + |
323 | 327 | if (RImplementation.o.dx10_msaa) |
324 | 328 | { |
325 | 329 | int bound = RImplementation.o.dx10_msaa_samples; |
@@ -403,11 +407,12 @@ CRenderTarget::CRenderTarget() |
403 | 407 | // generic(LDR) RTs |
404 | 408 | rt_Generic_0.create(r2_RT_generic0, w, h, D3DFMT_A8R8G8B8, 1); |
405 | 409 | rt_Generic_1.create(r2_RT_generic1, w, h, D3DFMT_A8R8G8B8, 1); |
| 410 | + rt_Generic.create(r2_RT_generic, w, h, D3DFMT_A8R8G8B8, 1); |
| 411 | + |
406 | 412 | if (RImplementation.o.dx10_msaa) |
407 | 413 | { |
408 | 414 | rt_Generic_0_r.create(r2_RT_generic0_r, w, h, D3DFMT_A8R8G8B8, SampleCount); |
409 | 415 | rt_Generic_1_r.create(r2_RT_generic1_r, w, h, D3DFMT_A8R8G8B8, SampleCount); |
410 | | - rt_Generic.create(r2_RT_generic, w, h, D3DFMT_A8R8G8B8, 1); |
411 | 416 | } |
412 | 417 | // Igor: for volumetric lights |
413 | 418 | // rt_Generic_2.create (r2_RT_generic2,w,h,D3DFMT_A8R8G8B8 ); |
@@ -643,6 +648,10 @@ CRenderTarget::CRenderTarget() |
643 | 648 | s_ssao.create(b_ssao, "r2\\ssao"); |
644 | 649 | } |
645 | 650 |
|
| 651 | + //FXAA |
| 652 | + s_fxaa.create(b_fxaa, "r3\\fxaa"); |
| 653 | + g_fxaa.create(FVF::F_V, RCache.Vertex.Buffer(), RCache.QuadIB); |
| 654 | + |
646 | 655 | if (RImplementation.o.ssao_blur_on) |
647 | 656 | { |
648 | 657 | u32 w = Device.dwWidth, h = Device.dwHeight; |
@@ -1040,6 +1049,7 @@ CRenderTarget::~CRenderTarget() |
1040 | 1049 | xr_delete(b_accum_point); |
1041 | 1050 | xr_delete(b_accum_direct); |
1042 | 1051 | xr_delete(b_ssao); |
| 1052 | + xr_delete(b_fxaa); //FXAA |
1043 | 1053 |
|
1044 | 1054 | if (RImplementation.o.dx10_msaa) |
1045 | 1055 | { |
|
0 commit comments