From: fredb Date: Sat, 10 Apr 2010 10:52:11 +0000 (+0000) Subject: Add a "scale" parameter that combine xsize and ysize in a vec3 property. There is... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=caabe8fc876498beab85ebe357b446a7bd0448dc;p=simgear.git Add a "scale" parameter that combine xsize and ysize in a vec3 property. There is no vec2 property, so the third component is zero --- diff --git a/simgear/scene/material/mat.cxx b/simgear/scene/material/mat.cxx index 9a1497e6..83b1a9fa 100644 --- a/simgear/scene/material/mat.cxx +++ b/simgear/scene/material/mat.cxx @@ -336,6 +336,7 @@ void SGMaterial::buildEffectProperties(const SGReaderWriterXMLOptions* options) } makeChild(effectParamProp, "xsize")->setDoubleValue(xsize); makeChild(effectParamProp, "ysize")->setDoubleValue(ysize); + makeChild(effectParamProp, "scale")->setValue(SGVec3d(xsize,ysize,0.0)); makeChild(effectParamProp, "light-coverage")->setDoubleValue(light_coverage); matState.effect = makeEffect(effectProp, false, xmlOptions.get());