|
@@ -53,6 +53,9 @@ class Material : public Resource {
|
|
protected:
|
|
protected:
|
|
_FORCE_INLINE_ RID _get_material() const { return material; }
|
|
_FORCE_INLINE_ RID _get_material() const { return material; }
|
|
static void _bind_methods();
|
|
static void _bind_methods();
|
|
|
|
+ virtual bool _can_do_next_pass() const { return false; }
|
|
|
|
+
|
|
|
|
+ void _validate_property(PropertyInfo &property) const;
|
|
|
|
|
|
public:
|
|
public:
|
|
enum {
|
|
enum {
|
|
@@ -84,6 +87,8 @@ protected:
|
|
|
|
|
|
void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const;
|
|
void get_argument_options(const StringName &p_function, int p_idx, List<String> *r_options) const;
|
|
|
|
|
|
|
|
+ virtual bool _can_do_next_pass() const;
|
|
|
|
+
|
|
public:
|
|
public:
|
|
void set_shader(const Ref<Shader> &p_shader);
|
|
void set_shader(const Ref<Shader> &p_shader);
|
|
Ref<Shader> get_shader() const;
|
|
Ref<Shader> get_shader() const;
|
|
@@ -394,6 +399,7 @@ private:
|
|
protected:
|
|
protected:
|
|
static void _bind_methods();
|
|
static void _bind_methods();
|
|
void _validate_property(PropertyInfo &property) const;
|
|
void _validate_property(PropertyInfo &property) const;
|
|
|
|
+ virtual bool _can_do_next_pass() const { return true; }
|
|
|
|
|
|
public:
|
|
public:
|
|
void set_albedo(const Color &p_albedo);
|
|
void set_albedo(const Color &p_albedo);
|