Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 867 vs 872 for /trunk/Source Code/Rendering/PostFX/CustomOperators/BloomPreRenderOperator.cpp

Diff revisions: vs.
  @@ -75,7 +75,7 @@
75 75 RenderTarget* screen = &_parent.inputRT();
76 76
77 77 // Step 1: generate bloom
78 - screen->bind(to_const_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0); //screen
78 + screen->bind(to_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0); //screen
79 79
80 80 // render all of the "bright spots"
81 81 _bloomOutput._rt->begin(RenderTarget::defaultPolicy());
  @@ -87,7 +87,7 @@
87 87 _blur->bind();
88 88 // Blur horizontally
89 89 _blur->SetSubroutine(ShaderType::FRAGMENT, _horizBlur);
90 - _bloomOutput._rt->bind(to_const_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0);
90 + _bloomOutput._rt->bind(to_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0);
91 91 _bloomBlurBuffer[0]._rt->begin(RenderTarget::defaultPolicy());
92 92 triangleCmd.shaderProgram(_blur);
93 93 _context.draw(triangleCmd);
  @@ -95,7 +95,7 @@
95 95
96 96 // Blur vertically (recycle the render target. We have a copy)
97 97 _blur->SetSubroutine(ShaderType::FRAGMENT, _vertBlur);
98 - _bloomBlurBuffer[0]._rt->bind(to_const_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0);
98 + _bloomBlurBuffer[0]._rt->bind(to_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0);
99 99 _bloomBlurBuffer[1]._rt->begin(RenderTarget::defaultPolicy());
100 100 triangleCmd.shaderProgram(_blur);
101 101 _context.draw(triangleCmd);
  @@ -103,8 +103,8 @@
103 103
104 104 // Step 3: apply bloom
105 105 _bloomBlurBuffer[0]._rt->blitFrom(screen);
106 - _bloomBlurBuffer[0]._rt->bind(to_const_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0); //Screen
107 - _bloomBlurBuffer[1]._rt->bind(to_const_U8(ShaderProgram::TextureUsage::UNIT1), RTAttachment::Type::Colour, 0); //Bloom
106 + _bloomBlurBuffer[0]._rt->bind(to_U8(ShaderProgram::TextureUsage::UNIT0), RTAttachment::Type::Colour, 0); //Screen
107 + _bloomBlurBuffer[1]._rt->bind(to_U8(ShaderProgram::TextureUsage::UNIT1), RTAttachment::Type::Colour, 0); //Bloom
108 108 screen->begin(_screenOnlyDraw);
109 109 triangleCmd.shaderProgram(_bloomApply);
110 110 _context.draw(triangleCmd);