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

46 lines
866 B
C++

#ifndef GRADIENT_H
#define GRADIENT_H
class Gradient : public GradientBase {
GDCLASS(Gradient, GradientBase);
public:
Ref<Resource> get_image();
void set_image(const Ref<Resource> &val);
float get_repeat() const;
void set_repeat(const float val);
float get_rotate() const;
void set_rotate(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);
float get_rotate();
void set_rotate(const float val);
Gradient();
~Gradient();
protected:
static void _bind_methods();
//tool
//export(Resource)
Ref<Resource> image;
//export(float)
float repeat = 1;
//export(float)
float rotate = 0;
};
#endif