]> git.tdb.fi Git - libs/gl.git/commitdiff
Add loader support for clipping in standard shaders
authorMikko Rasa <tdb@tdb.fi>
Sat, 13 Aug 2016 15:29:44 +0000 (18:29 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 13 Aug 2016 15:29:44 +0000 (18:29 +0300)
source/programbuilder.cpp

index f8c3973f8b8feba30da190196a588d7a62b711ca..5379abf2cc289162fb843341c7315759d039431f 100644 (file)
@@ -1102,10 +1102,12 @@ string ProgramBuilder::ShaderVariable::create_expression(const char *loop) const
 ProgramBuilder::StandardFeatures::Loader::Loader(StandardFeatures &f):
        DataFile::ObjectLoader<StandardFeatures>(f)
 {
+       add("clipping",  &StandardFeatures::clipping);
        add("custom",    &StandardFeatures::custom);
        add("fog",       &StandardFeatures::fog);
        add("lighting",  &StandardFeatures::lighting);
        add("material",  &StandardFeatures::material);
+       add("max_clip_planes", &StandardFeatures::max_clip_planes);
        add("max_lights", &StandardFeatures::max_lights);
        add("normalmap", &StandardFeatures::normalmap);
        add("reflection", &StandardFeatures::reflection);