Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 826 vs 827 for /trunk/Source Code/Rendering/Lighting/ShadowMapping/CascadedShadowMaps.cpp

Diff revisions: vs.
  @@ -62,8 +62,14 @@
62 62 _blurBuffer._rt->addAttachment(blurMapDescriptor, RTAttachment::Type::Colour, 0);
63 63 _blurBuffer._rt->setClearColour(RTAttachment::Type::COUNT, 0, DefaultColours::WHITE());
64 64
65 - _shadowMatricesBuffer = _context.newSB(1, false, false, BufferUpdateFrequency::OFTEN);
66 - _shadowMatricesBuffer->create(Config::Lighting::MAX_SPLITS_PER_LIGHT, sizeof(mat4<F32>));
65 + ShaderBufferParams params;
66 + params._primitiveCount = Config::Lighting::MAX_SPLITS_PER_LIGHT;
67 + params._primitiveSizeInBytes = sizeof(mat4<F32>);
68 + params._ringBufferLength = 1;
69 + params._unbound = false;
70 + params._updateFrequency = BufferUpdateFrequency::OFTEN;
71 +
72 + _shadowMatricesBuffer = _context.newSB(params);
67 73
68 74 STUBBED("Migrate to this: http://www.ogldev.org/www/tutorial49/tutorial49.html");
69 75 }