fix dynamic conical fractal noise
This commit is contained in:
parent
6ae7adc008
commit
f4a22cc8d9
1 changed files with 4 additions and 1 deletions
|
@ -384,8 +384,11 @@ void Iwa_FractalNoiseFx::doCompute(TTile &tile, double frame,
|
||||||
// obtain sampling position
|
// obtain sampling position
|
||||||
// For Dynamic and Dynamic Twist patterns, the position offsets using
|
// For Dynamic and Dynamic Twist patterns, the position offsets using
|
||||||
// gradient / rotation of the parent pattern
|
// gradient / rotation of the parent pattern
|
||||||
|
TPointD samplePosOffset =
|
||||||
|
getSamplePos(x, y, outDim, out_buf, gen, scale, param) -
|
||||||
|
TPointD(x, y);
|
||||||
TPointD samplePos =
|
TPointD samplePos =
|
||||||
getSamplePos(dx, dy, outDim, out_buf, gen, scale, param);
|
TPointD(dx, dy) + samplePosOffset * (D / (D + dz));
|
||||||
// multiply affine transformation
|
// multiply affine transformation
|
||||||
samplePos = currentAff * samplePos;
|
samplePos = currentAff * samplePos;
|
||||||
// adjust position for the block pattern
|
// adjust position for the block pattern
|
||||||
|
|
Loading…
Reference in a new issue