pandemonium_engine/modules/material_maker/nodes/gradient/circular_gradient.h

39 lines
760 B
C++
Raw Normal View History

2022-06-16 15:29:08 +02:00
#ifndef CIRCULAR_GRADIENT_H
#define CIRCULAR_GRADIENT_H
class CircularGradient : public GradientBase {
GDCLASS(CircularGradient, GradientBase);
public:
Ref<Resource> get_image();
void set_image(const Ref<Resource> &val);
float get_repeat() const;
void set_repeat(const float val);
void _init_properties();
void _register_methods(const Variant &mm_graph_node);
void _render(const Variant &material);
Color _get_value_for(const Vector2 &uv, const int pseed);
Color _get_gradient_color(const float x);
float get_repeat();
void set_repeat(const float val);
CircularGradient();
~CircularGradient();
protected:
static void _bind_methods();
//tool
//export(Resource)
Ref<Resource> image;
//export(float)
float repeat = 1;
};
#endif