From 25865f3fe46831f73429cc0b8b95a4271520d10e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sat, 13 Aug 2016 18:29:44 +0300 Subject: [PATCH] Add loader support for clipping in standard shaders --- source/programbuilder.cpp | 2 ++ 1 file changed, 2 insertions(+) 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); -- 2.43.0