]> git.tdb.fi Git - libs/gl.git/blobdiff - source/materials/renderpass.h
Use specialization constants in the builtin material shaders
[libs/gl.git] / source / materials / renderpass.h
index 9e704376a446b56abb056edf0d1aab803a269f7d..96b892dff07295275b4f1cd66e17f071a5d8f1a3 100644 (file)
@@ -31,6 +31,8 @@ public:
        private:
                void init();
 
+               static std::string get_shader_name(const std::string &);
+
                void material_inline();
                void material(const std::string &);
                void shader(const std::string &);
@@ -88,7 +90,7 @@ public:
        void set_material(const Material *);
        const Material *get_material() const { return material.get(); }
        const std::string &get_material_slot_name() const { return material_slot; }
-       void set_texture(unsigned, const Texture *);
+       void set_texture(unsigned, const Texture *, const Sampler * = 0);
        const Texturing *get_texturing() const { return texturing; }
        int get_texture_index(const std::string &) const;
        void set_back_faces(bool);