first shot at composited blending

still missing:
- stencil+depth mask
- alpha compositing
This commit is contained in:
Konstantin Käfer
2014-05-20 17:38:52 +02:00
parent 238fe86571
commit 13939b26d9
23 changed files with 325 additions and 23 deletions

View File

@@ -38,6 +38,7 @@ void Painter::setup() {
assert(rasterShader);
assert(textShader);
assert(dotShader);
assert(compositeShader);
// Blending
@@ -67,6 +68,7 @@ void Painter::setupShaders() {
rasterShader = std::make_unique<RasterShader>();
textShader = std::make_unique<TextShader>();
dotShader = std::make_unique<DotShader>();
compositeShader = std::make_unique<CompositeShader>();
}
void Painter::resize() {