[orx-shade-styles] Revise level quantization

This commit is contained in:
Edwin Jakobs
2025-03-06 20:48:22 +01:00
parent 49a3f3ea49
commit 5b55405a51
2 changed files with 50 additions and 2 deletions

View File

@@ -104,8 +104,8 @@ open class GradientBase<C>(
if (p_quantization != 0) {
f *= float(p_quantization);
f = floor(f + 0.5);
f /= float(p_quantization);
f = floor(f);
f /= float(p_quantization) - 1.0;
}
float sf;