Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 953 vs 1011 for /trunk/Source Code/Rendering/PostFX/CustomOperators/BloomPreRenderOperator.cpp

Diff revisions: vs.
  @@ -16,7 +16,8 @@
16 16 namespace Divide {
17 17
18 18 BloomPreRenderOperator::BloomPreRenderOperator(GFXDevice& context, PreRenderBatch& parent, ResourceCache& cache)
19 - : PreRenderOperator(context, parent, cache, FilterType::FILTER_BLOOM)
19 + : PreRenderOperator(context, parent, cache, FilterType::FILTER_BLOOM),
20 + _bloomFactor(0.0f)
20 21 {
21 22 vec2<U16> res(parent.inputRT()._rt->getWidth(), parent.inputRT()._rt->getHeight());
22 23
  @@ -67,7 +68,7 @@
67 68 }
68 69
69 70 void BloomPreRenderOperator::idle(const Configuration& config) {
70 - _bloomApplyConstants.set("bloomFactor", PushConstantType::FLOAT, config.rendering.bloomFactor);
71 + _bloomFactor = config.rendering.bloomFactor;
71 72 }
72 73
73 74 void BloomPreRenderOperator::reshape(U16 width, U16 height) {
  @@ -179,6 +180,7 @@
179 180 pipelineCmd._pipeline = &_context.newPipeline(pipelineDescriptor);
180 181 GFX::BindPipeline(bufferInOut, pipelineCmd);
181 182
183 + _bloomApplyConstants.set("bloomFactor", PushConstantType::FLOAT, _bloomFactor);
182 184 pushConstantsCommand._constants = _bloomApplyConstants;
183 185 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
184 186