Tweak in Soap.

This commit is contained in:
Blaz Kristan 2023-04-30 13:28:04 +02:00
parent 05eb716b85
commit cc599f544a

View File

@ -7417,7 +7417,7 @@ uint16_t mode_2Dsoap() {
}
}
uint32_t mov = MAX(cols,rows)*SEGMENT.speed/4;
uint32_t mov = MAX(cols,rows)*(SEGMENT.speed+1)/2;
*noise32_x += mov;
*noise32_y += mov;
*noise32_z += mov;
@ -7427,7 +7427,7 @@ uint16_t mode_2Dsoap() {
for (int j = 0; j < rows; j++) {
int32_t joffset = scale32_y * (j - rows / 2);
uint8_t data = inoise16(*noise32_x + ioffset, *noise32_y + joffset, *noise32_z) >> 8;
noise3d[XY(i,j)] = scale8(noise3d[XY(i,j)], SEGMENT.intensity) + scale8(data, 255 - SEGMENT.intensity);
noise3d[XY(i,j)] = scale8(noise3d[XY(i,j)], SEGMENT.intensity) + scale8(data, 256 - SEGMENT.intensity);
}
}