From: fredb Date: Sat, 10 Apr 2010 10:06:25 +0000 (+0000) Subject: Declare some material parameters as implicit effect parameters X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7c4e5309fc4b447cbd737d2cbfe9dd168ab866c0;p=simgear.git Declare some material parameters as implicit effect parameters --- 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()); }