Add a "scale" parameter that combine xsize and ysize in a vec3 property. There is no vec2 property, so the third component is zero

This commit is contained in:
fredb
2010-04-10 10:52:11 +00:00
committed by Tim Moore
parent 7c4e5309fc
commit caabe8fc87

View 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());