#ifndef MM_NOISE_H #define MM_NOISE_H #include "../mm_node.h" #include "../mm_node_universal_property.h" class MMNoise : public MMNode { GDCLASS(MMNoise, MMNode); public: Ref get_image(); void set_image(const Ref &val); int get_grid_size() const; void set_grid_size(const int val); float get_density() const; void set_density(const float val); void _init_properties(); void _register_methods(MMGraphNode *mm_graph_node); Color _get_value_for(const Vector2 &uv, const int pseed); void _render(const Ref &material); MMNoise(); ~MMNoise(); protected: static void _bind_methods(); //tool //export(MMNodeUniversalProperty) Ref image; //export(int) int grid_size = 16; //export(float) float density = 0.5; }; #endif