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/DoFPreRenderOperator.cpp

Diff revisions: vs.
  @@ -6,12 +6,14 @@
6 6
7 7 DoFPreRenderOperator::DoFPreRenderOperator(Quad3D* target,
8 8 FrameBufferObject* result,
9 - const vec2<U16>& resolution) : PreRenderOperator(DOF_STAGE,target,resolution),
10 - _outputFBO(result)
9 + const vec2<U16>& resolution,
10 + SamplerDescriptor* const sampler) : PreRenderOperator(DOF_STAGE,target,resolution,sampler),
11 + _outputFBO(result)
11 12 {
13 +
12 14 TextureDescriptor dofDescriptor(TEXTURE_2D, RGBA,RGBA8,FLOAT_32);
13 - dofDescriptor.setWrapMode(TEXTURE_CLAMP_TO_EDGE,TEXTURE_CLAMP_TO_EDGE);
14 - dofDescriptor._generateMipMaps = false; //it's a flat texture on a full screen quad. really?
15 + dofDescriptor.setSampler(*_internalSampler);
16 +
15 17 _outputFBO->AddAttachment(dofDescriptor,TextureDescriptor::Color0);
16 18 _outputFBO->Create(_resolution.width, _resolution.height);
17 19 _dofShader = CreateResource<ShaderProgram>(ResourceDescriptor("DepthOfField"));