Declare some material parameters as implicit effect parameters
This commit is contained in:
@@ -334,6 +334,10 @@ void SGMaterial::buildEffectProperties(const SGReaderWriterXMLOptions* options)
|
|||||||
makeChild(texProp, "wrap-t")
|
makeChild(texProp, "wrap-t")
|
||||||
->setStringValue(wrapv ? "repeat" : "clamp");
|
->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 = makeEffect(effectProp, false, xmlOptions.get());
|
||||||
matState.effect->setUserData(user.get());
|
matState.effect->setUserData(user.get());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user