implement alpha locking per layer

This commit is contained in:
2017-05-02 03:43:16 +01:00
parent 182c0b1baf
commit 9f23021fb8
7 changed files with 77 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ class Layer
public:
RTT m_rtt[6];
bool m_visible = true;
bool m_locked = false;
bool m_alpha_locked = false;
float m_opacity = 1.f;
std::string m_name;
struct Snapshot
@@ -41,6 +41,7 @@ class Canvas
public:
static Canvas* I;
bool m_erase = false;
bool m_alpha_lock = false;
glm::mat4 m_mv;
glm::mat4 m_proj;
glm::vec4 m_box;
@@ -63,6 +64,7 @@ public:
static glm::mat4 m_plane_transform[6];
Sampler m_sampler;
Sampler m_sampler_bg;
Sampler m_sampler_mask;
glm::vec2 m_cam_rot;
float m_cam_fov = 85;