Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 947 vs 948 for /trunk/Source Code/Rendering/DeferredShadingRenderer.cpp

Diff revisions: vs.
  @@ -234,7 +234,7 @@
234 234 if (_debugView) {
235 235 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 4);
236 236 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
237 - if (_renderQuads[1]->onRender(_context.gfx().getRenderStage())) {
237 + if (_renderQuads[1]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
238 238 cmd.sourceBuffer(_renderQuads[1]->getGeometryVB());
239 239 GFX::DrawCommand drawCmd;
240 240 drawCmd._drawCommands.push_back(cmd);
  @@ -242,7 +242,7 @@
242 242 }
243 243 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 1);
244 244 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
245 - if (_renderQuads[2]->onRender(_context.gfx().getRenderStage())) {
245 + if (_renderQuads[2]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
246 246 cmd.sourceBuffer(_renderQuads[2]->getGeometryVB());
247 247 GFX::DrawCommand drawCmd;
248 248 drawCmd._drawCommands.push_back(cmd);
  @@ -250,7 +250,7 @@
250 250 }
251 251 pushConstantsCommand._constants.set("texDiffuse0", PushConstantType::UINT, 2);
252 252 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
253 - if (_renderQuads[3]->onRender(_context.gfx().getRenderStage())) {
253 + if (_renderQuads[3]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
254 254 cmd.sourceBuffer(_renderQuads[3]->getGeometryVB());
255 255 GFX::DrawCommand drawCmd;
256 256 drawCmd._drawCommands.push_back(cmd);
  @@ -266,7 +266,7 @@
266 266 pushConstantsCommand._constants.set("lightCount", PushConstantType::INT, (I32)_cachedLightCount);
267 267 GFX::SendPushConstants(bufferInOut, pushConstantsCommand);
268 268
269 - if (_renderQuads[_debugView ? 4 : 0]->onRender(_context.gfx().getRenderStage())) {
269 + if (_renderQuads[_debugView ? 4 : 0]->onRender(sceneRenderState, _context.gfx().getRenderStage())) {
270 270 cmd.sourceBuffer(_renderQuads[_debugView ? 4 : 0]->getGeometryVB());
271 271 GFX::DrawCommand drawCmd;
272 272 drawCmd._drawCommands.push_back(cmd);