]> git.tdb.fi Git - libs/gl.git/blobdiff - source/programbuilder.cpp
Add loader support for clipping in standard shaders
[libs/gl.git] / 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);