implement shading modes switch for heightmap

This commit is contained in:
2018-12-24 23:47:00 +01:00
parent 52c87d9ec6
commit f823451546
5 changed files with 44 additions and 17 deletions

View File

@@ -13,6 +13,8 @@
class NodePanelGrid : public Node
{
public:
enum class ShadeMode : uint8_t { Transparent, Flat, Solid };
NodeSliderH* m_groud_opacity;
NodeSliderH* m_groud_value;
NodeSliderH* m_groud_resolution;
@@ -29,6 +31,7 @@ public:
HeightmapPlane m_hm_plane;
Image m_hm_image;
std::string m_file_path;
ShadeMode m_shade_mode{ ShadeMode::Transparent };
virtual Node* clone_instantiate() const override;
virtual void clone_finalize(Node* dest) const override;