summaryrefslogtreecommitdiff
path: root/src/render/pass/TextureMatteElement.hpp
blob: 03526a57f5d25f612b116617d082e2a493731947 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#pragma once
#include "PassElement.hpp"
#include "../Framebuffer.hpp"

namespace Render {
    class ITexture;
}

class CTextureMatteElement : public IPassElement {
  public:
    struct STextureMatteData {
        CBox                     box;
        SP<Render::ITexture>     tex;
        SP<Render::IFramebuffer> fb;
        bool                     disableTransformAndModify = false;
    };

    CTextureMatteElement(const STextureMatteData& data_);
    virtual ~CTextureMatteElement() = default;

    virtual bool        needsLiveBlur();
    virtual bool        needsPrecomputeBlur();

    virtual const char* passName() {
        return "CTextureMatteElement";
    }

    virtual ePassElementType type() {
        return EK_TEXTURE_MATTE;
    };

    STextureMatteData m_data;
};