]> git.mxchange.org Git - simgear.git/commitdiff
Add a "scale" parameter that combine xsize and ysize in a vec3 property. There is...
authorfredb <fredb>
Sat, 10 Apr 2010 10:52:11 +0000 (10:52 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 12 Apr 2010 05:25:13 +0000 (07:25 +0200)
simgear/scene/material/mat.cxx

index 9a1497e6df679d981986c1539893dc9a3a0bf9d1..83b1a9faf717cd1546592f05b96ef4b7deaaf32b 100644 (file)
@@ -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());