Commit 4e2ef0c
ops: thread sharpness through ceil_int to its inner floor_int
ceil_int(x) = -floor_int(-x); floor_int already takes a sharpness override
but ceil_int did not forward it, pinning ceil to the default 0.1-wide ramp.
The DOOM screen-y staircase (CEIL_Y) needs sharpness=10000 (1e-4 ramp) so a
raw screen-y carrying ~0.077 of piecewise-linear multiply noise stays in the
flat zone and ceils to an exact scanline integer. Additive kwarg; the default
(None) path is byte-identical, so the measured noise footer is unchanged.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 57ef38c commit 4e2ef0c
2 files changed
Lines changed: 41 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
941 | 941 | | |
942 | 942 | | |
943 | 943 | | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
944 | 970 | | |
945 | 971 | | |
946 | 972 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
2365 | 2370 | | |
2366 | 2371 | | |
2367 | 2372 | | |
2368 | 2373 | | |
2369 | 2374 | | |
2370 | 2375 | | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
2371 | 2382 | | |
2372 | 2383 | | |
2373 | 2384 | | |
| |||
2378 | 2389 | | |
2379 | 2390 | | |
2380 | 2391 | | |
2381 | | - | |
| 2392 | + | |
| 2393 | + | |
| 2394 | + | |
2382 | 2395 | | |
2383 | 2396 | | |
2384 | 2397 | | |
| |||
0 commit comments