From: Mikko Rasa Date: Sat, 13 Aug 2016 15:29:44 +0000 (+0300) Subject: Add loader support for clipping in standard shaders X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=25865f3fe46831f73429cc0b8b95a4271520d10e Add loader support for clipping in standard shaders --- diff --git a/source/programbuilder.cpp b/source/programbuilder.cpp index f8c3973f..5379abf2 100644 --- a/source/programbuilder.cpp +++ b/source/programbuilder.cpp @@ -1102,10 +1102,12 @@ string ProgramBuilder::ShaderVariable::create_expression(const char *loop) const ProgramBuilder::StandardFeatures::Loader::Loader(StandardFeatures &f): DataFile::ObjectLoader(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);