mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Fixed graphics bug with filled
This commit is contained in:
parent
25b3549e04
commit
8cabd1c953
2 changed files with 4 additions and 4 deletions
|
@ -178,13 +178,13 @@ void DrawOutline::configure(const Config& config) {
|
|||
|
||||
void DrawOutline::run(const render::RenderContextPointer& renderContext, const Inputs& inputs) {
|
||||
auto outlineFrameBuffer = inputs.get1();
|
||||
auto outlineRect = inputs.get4();
|
||||
auto outlineRect = inputs.get3();
|
||||
|
||||
if (outlineFrameBuffer && outlineRect.z>0 && outlineRect.w>0) {
|
||||
auto sceneDepthBuffer = inputs.get2();
|
||||
const auto frameTransform = inputs.get0();
|
||||
auto outlinedDepthTexture = outlineFrameBuffer->getDepthTexture();
|
||||
auto destinationFrameBuffer = inputs.get3();
|
||||
auto destinationFrameBuffer = outlineFrameBuffer->getColorFramebuffer();
|
||||
auto framebufferSize = glm::ivec2(outlinedDepthTexture->getDimensions());
|
||||
|
||||
if (sceneDepthBuffer) {
|
||||
|
@ -391,7 +391,7 @@ void DrawOutlineTask::build(JobModel& task, const render::Varying& inputs, rende
|
|||
stream << "OutlineEffect" << i;
|
||||
name = stream.str();
|
||||
}
|
||||
const auto drawOutlineInputs = DrawOutline::Inputs(deferredFrameTransform, outlineRessources, sceneFrameBuffer, primaryFramebuffer, outlinedRect).asVarying();
|
||||
const auto drawOutlineInputs = DrawOutline::Inputs(deferredFrameTransform, outlineRessources, sceneFrameBuffer, outlinedRect).asVarying();
|
||||
task.addJob<DrawOutline>(name, drawOutlineInputs);
|
||||
}
|
||||
|
||||
|
|
|
@ -110,7 +110,7 @@ signals:
|
|||
class DrawOutline {
|
||||
public:
|
||||
|
||||
using Inputs = render::VaryingSet5<DeferredFrameTransformPointer, OutlineRessourcesPointer, DeferredFramebufferPointer, gpu::FramebufferPointer, glm::ivec4>;
|
||||
using Inputs = render::VaryingSet4<DeferredFrameTransformPointer, OutlineRessourcesPointer, DeferredFramebufferPointer, glm::ivec4>;
|
||||
using Config = DrawOutlineConfig;
|
||||
using JobModel = render::Job::ModelI<DrawOutline, Inputs, Config>;
|
||||
|
||||
|
|
Loading…
Reference in a new issue