From 7c4e5309fc4b447cbd737d2cbfe9dd168ab866c0 Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 10 Apr 2010 10:06:25 +0000 Subject: [PATCH] Declare some material parameters as implicit effect parameters --- simgear/scene/material/mat.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 8d53f861..9a1497e6 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -334,6 +334,10 @@ void SGMaterial::buildEffectProperties(const SGReaderWriterXMLOptions* options) makeChild(texProp, "wrap-t") ->setStringValue(wrapv ? "repeat" : "clamp"); } + makeChild(effectParamProp, "xsize")->setDoubleValue(xsize); + makeChild(effectParamProp, "ysize")->setDoubleValue(ysize); + makeChild(effectParamProp, "light-coverage")->setDoubleValue(light_coverage); + matState.effect = makeEffect(effectProp, false, xmlOptions.get()); matState.effect->setUserData(user.get()); }