Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 167 vs 168 for /trunk/Source Code/Rendering/PostFX/CustomOperators/FXAAPreRenderOperator.cpp

Diff revisions: vs.
  @@ -7,13 +7,14 @@
7 7
8 8 FXAAPreRenderOperator::FXAAPreRenderOperator(Quad3D* target,
9 9 FrameBufferObject* result,
10 - const vec2<U16>& resolution) : PreRenderOperator(FXAA_STAGE,target,resolution),
11 - _outputFBO(result)
10 + const vec2<U16>& resolution,
11 + SamplerDescriptor* const sampler) : PreRenderOperator(FXAA_STAGE,target,resolution,sampler),
12 + _outputFBO(result)
12 13 {
13 14 _samplerCopy = GFX_DEVICE.newFBO(FBO_2D_COLOR);
14 15 TextureDescriptor fxaaDescriptor(TEXTURE_2D, RGBA,RGBA8,FLOAT_32);
15 - fxaaDescriptor.setWrapMode(TEXTURE_CLAMP_TO_EDGE,TEXTURE_CLAMP_TO_EDGE);
16 - fxaaDescriptor._generateMipMaps = false; //it's a flat texture on a full screen quad. really?
16 + fxaaDescriptor.setSampler(*_internalSampler);
17 +
17 18 _samplerCopy->AddAttachment(fxaaDescriptor,TextureDescriptor::Color0);
18 19 _samplerCopy->toggleDepthBuffer(false);
19 20 _samplerCopy->Create(resolution.width,resolution.height);