pandemonium_engine/modules/material_maker/nodes/sdf3d/sdf3d_op_revolution.h

44 lines
827 B
C++

#ifndef SDF3D_OP_REVOLUTION_H
#define SDF3D_OP_REVOLUTION_H
class Sdf3dOpRevolution : public MMNode {
GDCLASS(Sdf3dOpRevolution, MMNode);
public:
Ref<Resource> get_input();
void set_input(const Ref<Resource> &val);
Ref<Resource> get_output();
void set_output(const Ref<Resource> &val);
float get_offset() const;
void set_offset(const float val);
void _init_properties();
void _register_methods(const Variant &mm_graph_node);
Vector2 _get_property_value_sdf3d(const Vector3 &uv3);
float get_offset();
void set_offset(const float val);
void on_input_changed();
Sdf3dOpRevolution();
~Sdf3dOpRevolution();
protected:
static void _bind_methods();
//tool
//export(Resource)
Ref<Resource> input;
//export(Resource)
Ref<Resource> output;
//export(float)
float offset = 0.25;
//offset
};
#endif