History

working on text3d overlays and entities

SamGondelman committed 9 years ago

Commit 1b85a451 parent d8bb3c718 files · +131 −89Browse files

Showing the changes to libraries/render-utils/src/RenderForwardTask.cpp (1 of 18 files). Show all

Unified · Split

libraries/render-utils/src/RenderForwardTask.cpp+3−6
@@ -17,6 +17,7 @@ · 16 unmodified lines
1717 #include <PathUtils.h>
1818 #include <ViewFrustum.h>
1919 #include <gpu/Context.h>
20+#include "StencilMaskPass.h"
2021
2122 #include "FramebufferCache.h"
2223 #include "TextureCache.h"
@@ -93,7 +94,7 @@ void PrepareFramebuffer::run(const RenderContextPointer& renderContext, · 70 unmodified lines
9394 gpu::Framebuffer::BUFFER_COLOR0 |
9495 gpu::Framebuffer::BUFFER_DEPTH |
9596 gpu::Framebuffer::BUFFER_STENCIL,
96− vec4(vec3(0), 1), 1.0, 0.0, true);
97+ vec4(vec3(0), 1), 1.0, 0, true);
9798 });
9899
99100 framebuffer = _framebuffer;
@@ -130,11 +131,7 @@ const gpu::PipelinePointer Stencil::getPipeline() { · 30 unmodified lines
130131
131132 auto state = std::make_shared<gpu::State>();
132133 state->setDepthTest(true, false, gpu::LESS_EQUAL);
133− const gpu::int8 STENCIL_OPAQUE = 1;
134− state->setStencilTest(true, 0xFF, gpu::State::StencilTest(STENCIL_OPAQUE, 0xFF, gpu::ALWAYS,
135− gpu::State::STENCIL_OP_REPLACE,
136− gpu::State::STENCIL_OP_REPLACE,
137− gpu::State::STENCIL_OP_KEEP));
134+ PrepareStencil::drawBackground(*state);
138135
139136 _stencilPipeline = gpu::Pipeline::create(program, state);
140137 }

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