@Override
public void init(FlameTransformationContext pContext, Layer pLayer, XForm pXForm, double pAmount) {
if (flame != null) {
Layer layer = flame.getFirstLayer();
layer.refreshModWeightTables(pContext);
xf = layer.getXForms().get(0);
p = new XYZPoint();
p.x = 2.0 * pContext.random() - 1.0;
p.y = 2.0 * pContext.random() - 1.0;
p.z = 0.0;