33 #include "io/resource_loader.h" 34 #include "scene/resources/texture.h" 39 RES_BASE_EXTENSION(
"shd");
59 mutable bool params_cache_dirty;
69 static void _bind_methods();
74 Mode get_mode()
const;
76 void set_code(
const String& p_vertex,
const String& p_fragment,
const String& p_light,
int p_fragment_ofs=0,
int p_light_ofs=0);
77 String get_vertex_code()
const;
78 String get_fragment_code()
const;
79 String get_light_code()
const;
82 bool has_param(
const StringName& p_param)
const;
89 if (params_cache_dirty)
98 virtual RID get_rid()
const;
105 VARIANT_ENUM_CAST( Shader::Mode );
129 virtual RES load(
const String &p_path,
const String& p_original_path=
"",Error *r_error=NULL);
130 virtual void get_recognized_extensions(
List<String> *p_extensions)
const;
131 virtual bool handles_type(
const String& p_type)
const;
132 virtual String get_resource_type(
const String &p_path)
const;
Definition: string_db.h:48
Definition: resource.h:89
Definition: dictionary.h:42