]> git.mxchange.org Git - simgear.git/commitdiff
Declare some material parameters as implicit effect parameters
authorfredb <fredb>
Sat, 10 Apr 2010 10:06:25 +0000 (10:06 +0000)
committerTim Moore <timoore33@gmail.com>
Mon, 12 Apr 2010 05:25:13 +0000 (07:25 +0200)
simgear/scene/material/mat.cxx

index 8d53f86195a9bb0d0e7d8b61b56ab89b94568943..9a1497e6df679d981986c1539893dc9a3a0bf9d1 100644 (file)
@@ -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());
     }