fix dynamic conical fractal noise

This commit is contained in:
shun-iwasawa 2022-01-25 18:03:19 +09:00 committed by manongjohn
parent 6ae7adc008
commit f4a22cc8d9

View file

@ -384,8 +384,11 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame,
// obtain sampling position
// For Dynamic and Dynamic Twist patterns, the position offsets using
// gradient / rotation of the parent pattern
TPointD samplePosOffset =
getSamplePos(x, y, outDim, out_buf, gen, scale, param) -
TPointD(x, y);
TPointD samplePos =
getSamplePos(dx, dy, outDim, out_buf, gen, scale, param);
TPointD(dx, dy) + samplePosOffset * (D / (D + dz));
// multiply affine transformation
samplePos = currentAff * samplePos;
// adjust position for the block pattern