Declare some material parameters as implicit effect parameters

This commit is contained in:
fredb
2010-04-12 07:25:13 +02:00
committed by Tim Moore
parent 542124e90c
commit 7c4e5309fc
+4
View 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());
}