From caabe8fc876498beab85ebe357b446a7bd0448dc Mon Sep 17 00:00:00 2001 From: fredb Date: Sat, 10 Apr 2010 10:52:11 +0000 Subject: [PATCH] Add a "scale" parameter that combine xsize and ysize in a vec3 property. There is no vec2 property, so the third component is zero --- simgear/scene/material/mat.cxx | 1 + 1 file changed, 1 insertion(+) 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()); -- 2.39.5