pandemonium_engine/modules/material_maker/nodes/noise/anisotropic_noise.h

41 lines
913 B
C++
Raw Normal View History

#ifndef MM_ANISOTROPIC_NOISE_H
#define MM_ANISOTROPIC_NOISE_H
2022-06-16 15:29:08 +02:00
#include "../mm_node.h"
#include "../mm_node_universal_property.h"
2022-06-16 15:29:08 +02:00
class MMAnisotropicNoise : public MMNode {
GDCLASS(MMAnisotropicNoise, MMNode);
2022-06-16 15:29:08 +02:00
public:
Ref<MMNodeUniversalProperty> get_image();
void set_image(const Ref<MMNodeUniversalProperty> &val);
2022-06-16 15:29:08 +02:00
Vector2 get_scale();
void set_scale(const Vector2 &val);
2022-06-16 15:29:08 +02:00
float get_smoothness() const;
void set_smoothness(const float val);
2022-06-16 15:29:08 +02:00
float get_interpolation() const;
void set_interpolation(const float val);
2022-06-16 15:29:08 +02:00
void _init_properties();
void _register_methods(MMGraphNode *mm_graph_node);
Color _get_value_for(const Vector2 &uv, const int pseed);
void _render(const Ref<MMMaterial> &material);
2022-06-16 15:29:08 +02:00
MMAnisotropicNoise();
~MMAnisotropicNoise();
2022-06-16 15:29:08 +02:00
protected:
static void _bind_methods();
2022-06-16 15:29:08 +02:00
Ref<MMNodeUniversalProperty> image;
Vector2 scale;
float smoothness;
float interpolation;
2022-06-16 15:29:08 +02:00
};
#endif