History

clean version of the simple stereo ack, not available for Occulus yet

Sam Gateau committed 12 years ago

Commit d9ae3eb1 parent cc780001 file · +4 −3Browse files

Showing the changes to interface/src/renderer/Model.cpp (1 of 1 file). Show all

Unified · Split

interface/src/renderer/Model.cpp+4−3
@@ -1505,10 +1505,11 @@ void Model::setupBatchTransform(gpu::Batch& batch) { · 1504 unmodified lines
1505void Model::endScene(RenderMode mode, RenderArgs* args) {1505void Model::endScene(RenderMode mode, RenderArgs* args) {
1506 PROFILE_RANGE(__FUNCTION__);1506 PROFILE_RANGE(__FUNCTION__);
1507 1507
1508 auto side = RenderArgs::MONO;1508 RenderArgs::RenderSide renderSide = RenderArgs::MONO;
1509 if (args) side = args->_renderSide;1509 if (args) renderSide = args->_renderSide;
1510 1510
1511 if (side != RenderArgs::STEREO_RIGHT) {1511 // Do the rendering batch creation for mono or left eye, not for right eye
1512 if (renderSide != RenderArgs::STEREO_RIGHT) {
1512 // Let's introduce a gpu::Batch to capture all the calls to the graphics api1513 // Let's introduce a gpu::Batch to capture all the calls to the graphics api
1513 _sceneRenderBatch.clear();1514 _sceneRenderBatch.clear();
1514 gpu::Batch& batch = _sceneRenderBatch;1515 gpu::Batch& batch = _sceneRenderBatch;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t