Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 118 vs 119 for /trunk/Source Code/Rendering/PostFX/PreRenderStageBuilder.cpp

Diff revisions: vs.
  @@ -2,6 +2,7 @@
2 2 #include "Headers/PreRenderStageBuilder.h"
3 3 #include "CustomOperators/Headers/SSAOPreRenderOperator.h"
4 4 #include "CustomOperators/Headers/BloomPreRenderOperator.h"
5 + #include "CustomOperators/Headers/DoFPreRenderOperator.h"
5 6
6 7 PreRenderStageBuilder::PreRenderStageBuilder(){
7 8 _renderStage = New PreRenderStage();
  @@ -22,6 +23,11 @@
22 23 return addToStage(bloom, state);
23 24 }
24 25
26 + PreRenderOperator* PreRenderStageBuilder::addDOFOperator(ShaderProgram* const dofShader, Quad3D* target, bool& state, FrameBufferObject* result, const vec2<U16>& resolution) {
27 + DoFPreRenderOperator* dof = New DoFPreRenderOperator(dofShader,target,result,resolution);
28 + return addToStage(dof, state);
29 + }
30 +
25 31 PreRenderOperator* PreRenderStageBuilder::addToStage(PreRenderOperator* op, bool& state){
26 32 op->setEnabled(state);
27 33 _renderStage->addRenderOperator(op);