filled out alpha over and opacity nodes

This commit is contained in:
itsmattkc
2019-08-31 14:45:13 +10:00
parent f6db7b6893
commit a4369c4d79
13 changed files with 355 additions and 4 deletions
+3 -1
View File
@@ -26,9 +26,9 @@
#include "decoder/ffmpeg/ffmpegdecoder.h"
#include "node/processor/renderer/renderer.h"
#include "project/item/footage/footage.h"
#include "render/pixelservice.h"
#include "render/gl/shadergenerators.h"
#include "render/gl/functions.h"
#include "render/pixelservice.h"
MediaInput::MediaInput() :
decoder_(nullptr),
@@ -220,6 +220,8 @@ QVariant MediaInput::Value(NodeOutput *output, const rational &time)
pipeline_ = olive::ShaderGenerator::DefaultPipeline();
}
renderer->context()->functions()->glBlendFunc(GL_ONE, GL_ZERO);
// Draw onto the output texture using the renderer's framebuffer
renderer->buffer()->Attach(output_texture);
renderer->buffer()->Bind();