implement shading modes switch for heightmap
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user