Move to use postfix increment only

This commit is contained in:
Alexander Bock
2025-09-07 16:56:59 +02:00
parent 0e72a2cb0d
commit ff72e47f7b
49 changed files with 94 additions and 94 deletions

View File

@@ -179,7 +179,7 @@ void TransferFunction::setTextureFromTxt() {
const float dist = fpos - prevKey->position;
const float weight = dist / (currentKey->position - prevKey->position);
for (int channel = 0; channel < 4; ++channel) {
for (int channel = 0; channel < 4; channel++) {
const size_t position = 4 * i + channel;
// Interpolate linearly between prev and next mapping key
float value = (prevKey->color[channel] * (1.f - weight) +