]> git.tdb.fi Git - libs/gl.git/blob - source/effects/effect.cpp
Add export_light to the list of reloadable files in the Blender exporter
[libs/gl.git] / source / effects / effect.cpp
1 #include "effect.h"
2
3 namespace Msp {
4 namespace GL {
5
6 Effect::Effect(Renderable &r):
7         renderable(r)
8 {
9         enabled_passes.insert(Tag());
10 }
11
12 void Effect::enable_for_pass(Tag tag)
13 {
14         enabled_passes.insert(tag);
15 }
16
17 void Effect::disable_for_pass(Tag tag)
18 {
19         enabled_passes.erase(tag);
20 }
21
22 } // namespace GL
23 } // namespace Msp