]> git.tdb.fi Git - libs/gl.git/blobdiff - source/technique.h
Use an explicit material slot name in RenderPass
[libs/gl.git] / source / technique.h
index 7ea695378714d669dabfd8104030664fc1d42787..1078433f39f7d5c028b80ca622150882446ac3e4 100644 (file)
@@ -50,7 +50,8 @@ public:
        bool has_pass(const Tag &) const;
        const RenderPass &get_pass(const Tag &) const;
        const PassMap &get_passes() const { return passes; }
-       void replace_texture(const std::string &, const Texture &);
+       bool replace_texture(const std::string &, const Texture &);
+       bool replace_material(const std::string &, const Material &);
        bool has_shaders() const;
 };