Subversion Repository Public Repository

Divide-Framework

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

Diff Revisions 302 vs 307 for /trunk/Source Code/Environment/Vegetation/Vegetation.cpp

Diff revisions: vs.
  @@ -308,10 +308,10 @@
308 308 buffer->BindFeedbackBufferRange(CulledSizeBuffer, _instanceCountGrass * queryId, _instanceCountGrass);
309 309 buffer->BindFeedbackBufferRange(CulledInstanceBuffer, _instanceCountGrass * queryId, _instanceCountGrass);
310 310
311 - _cullDrawCommand.setInstanceCount(_instanceCountGrass);
312 - _cullDrawCommand.setQueryID(queryId);
313 - _cullDrawCommand.setDrawToBuffer(true);
314 - _cullDrawCommand.setShaderProgram(_cullShader);
311 + _cullDrawCommand.instanceCount(_instanceCountGrass);
312 + _cullDrawCommand.queryID(queryId);
313 + _cullDrawCommand.drawToBuffer(true);
314 + _cullDrawCommand.shaderProgram(_cullShader);
315 315 GFX_DEVICE.submitRenderCommand(buffer, _cullDrawCommand);
316 316 //_cullDrawCommand.setInstanceCount(_instanceCountTrees);
317 317 //GFX_DEVICE.submitRenderCommand(_treeGPUBuffer, _cullDrawCommand);
  @@ -333,12 +333,12 @@
333 333 return;
334 334
335 335 _grassBillboards->Bind(0);
336 -
337 - _renderDrawCommand.setStateHash(_grassStateBlockHash);
338 - _renderDrawCommand.setInstanceCount(instanceCount);
339 - _renderDrawCommand.setLoD(1);
340 - _renderDrawCommand.setDrawID(GFX_DEVICE.getDrawID(sgn->getGUID()));
341 - _renderDrawCommand.setShaderProgram(getDrawShader(currentRenderStage));
336 + _renderDrawCommand.renderWireframe(sgn->renderWireframe());
337 + _renderDrawCommand.stateHash(_grassStateBlockHash);
338 + _renderDrawCommand.instanceCount(instanceCount);
339 + _renderDrawCommand.LoD(1);
340 + _renderDrawCommand.drawID(GFX_DEVICE.getDrawID(sgn->getGUID()));
341 + _renderDrawCommand.shaderProgram(getDrawShader(currentRenderStage));
342 342 buffer->getDrawAttribDescriptor(posLocation).offset(_instanceCountGrass * queryId);
343 343 buffer->getDrawAttribDescriptor(scaleLocation).offset(_instanceCountGrass * queryId);
344 344 buffer->getDrawAttribDescriptor(instLocation).offset(_instanceCountGrass * queryId);