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

Diff revisions: vs.
  @@ -8,8 +8,9 @@
8 8
9 9 SSAOPreRenderOperator::SSAOPreRenderOperator(Quad3D* target,
10 10 FrameBufferObject* result,
11 - const vec2<U16>& resolution) : PreRenderOperator(SSAO_STAGE,target,resolution),
12 - _outputFBO(result)
11 + const vec2<U16>& resolution,
12 + SamplerDescriptor* const sampler) : PreRenderOperator(SSAO_STAGE,target,resolution,sampler),
13 + _outputFBO(result)
13 14 {
14 15 F32 width = _resolution.width;
15 16 F32 height = _resolution.height;
  @@ -19,8 +20,7 @@
19 20 _colorNoise = CreateResource<Texture>(colorNoiseTexture);
20 21
21 22 TextureDescriptor normalsDescriptor(TEXTURE_2D, RGBA,RGBA8,FLOAT_32);
22 - normalsDescriptor.setWrapMode(TEXTURE_CLAMP_TO_EDGE,TEXTURE_CLAMP_TO_EDGE);
23 - normalsDescriptor._generateMipMaps = false; //it's a flat texture on a full screen quad. really?
23 + normalsDescriptor.setSampler(*_internalSampler);
24 24 _normalsFBO->AddAttachment(normalsDescriptor,TextureDescriptor::Color0);
25 25 _normalsFBO->toggleDepthBuffer(false);
26 26
  @@ -28,8 +28,7 @@
28 28 _normalsFBO->Create(width,height);
29 29
30 30 TextureDescriptor outputDescriptor(TEXTURE_2D, RGBA,RGBA8,FLOAT_32);
31 - outputDescriptor.setWrapMode(TEXTURE_CLAMP_TO_EDGE,TEXTURE_CLAMP_TO_EDGE);
32 - outputDescriptor._generateMipMaps = false; //it's a flat texture on a full screen quad. really?
31 + outputDescriptor.setSampler(*_internalSampler);
33 32 _outputFBO->AddAttachment(outputDescriptor,TextureDescriptor::Color0);
34 33 _outputFBO->Create(width, height);
35 34 _stage1Shader = CreateResource<ShaderProgram>(ResourceDescriptor("SSAOPass1"));