From c38c1007f81235f67809b30c2820bc2db0875f17 Mon Sep 17 00:00:00 2001 From: chasse20 Date: Wed, 18 Nov 2026 13:55:05 -0500 Subject: [PATCH] Match uniform power and runtime subnormal arithmetic --- crates/nodes/src/function/arithmetic.rs | 21 +++++--- .../nodes/src/function/binary_exponential.rs | 29 +++++++++-- crates/nodes/src/function/product_sum.rs | 11 +++-- crates/nodes/src/function/tests.rs | 49 ++++++++++++++++++- docs/parity-fixes.md | 29 ++++++++++- docs/sbs-root-nodes.md | 8 +-- 6 files changed, 125 insertions(+), 22 deletions(-) diff --git a/crates/nodes/src/function/arithmetic.rs b/crates/nodes/src/function/arithmetic.rs index c7d3d012..58cbc657 100644 --- a/crates/nodes/src/function/arithmetic.rs +++ b/crates/nodes/src/function/arithmetic.rs @@ -1,6 +1,11 @@ use super::value_type::{dimensions, floats, integer_value, integers, intermediate_float_value as float_value}; use materialcraft_core::Value; +/// Runtime arithmetic treats subnormals as signed zero at its inputs and rounded results. +pub(super) fn flush_subnormal(value: f32) -> f32 { + if value.is_subnormal() { 0.0_f32.copysign(value) } else { value } +} + pub(crate) fn evaluate(instruction: &super::instruction::Instruction, args: &[Value], random: &mut u32, scope: super::FunctionScope) -> Result { let op = instruction.definition.id; let pixel_math = scope == super::FunctionScope::PixelProcessor && !instruction.literal; @@ -49,8 +54,10 @@ pub(crate) fn evaluate(instruction: &super::instruction::Instruction, args: &[Va if op == "dot" { if pixel_math && count >= 2 { // The second product rounds first. Each remaining channel contributes one fused operation. - let xy = left[0].mul_add(right[0], left[1] * right[1]); - let sum = left.iter().zip(right).take(count).skip(2).fold(xy, |sum, (a, b)| a.mul_add(b, sum)); + let left = left.map(flush_subnormal); + let right = right.map(flush_subnormal); + let xy = flush_subnormal(left[0].mul_add(right[0], flush_subnormal(left[1] * right[1]))); + let sum = left.iter().zip(right).take(count).skip(2).fold(xy, |sum, (a, b)| flush_subnormal(a.mul_add(b, sum))); return float_value(&[sum]); } return float_value(&[left.iter().zip(right).take(count).map(|(a, b)| a * b).sum()]); @@ -73,9 +80,11 @@ pub(crate) fn evaluate(instruction: &super::instruction::Instruction, args: &[Va return float_value(&[left[0] * angle_component(angle, true), left[0] * angle_component(angle, false)]); } + let flush_arithmetic = !instruction.literal && matches!(op, "add" | "sub" | "mul" | "mulscalar" | "div"); let mut result = [0.0; 4]; for (((result, left), right), factor) in result.iter_mut().zip(left).zip(right).zip(factor).take(count) { - *result = match op { + let (left, right) = if flush_arithmetic { (flush_subnormal(left), flush_subnormal(right)) } else { (left, right) }; + let value = match op { "add" => left + right, "sub" => left - right, "mul" | "mulscalar" => left * right, @@ -93,11 +102,10 @@ pub(crate) fn evaluate(instruction: &super::instruction::Instruction, args: &[Va "sqrt" => left.sqrt(), "exp" => super::binary_exponential::exp(left, pixel_math), "log" if pixel_math => super::binary_exponential::ln(left), - "log" => left.ln(), + "log" => super::binary_exponential::uniform_ln(left), "log2" if pixel_math => super::binary_exponential::log2(left), "log2" => left.log2(), - "pow" if pixel_math => super::binary_exponential::power(left, right), - "pow" => left.powf(right), + "pow" => super::binary_exponential::power(left, right, pixel_math), "pow2" if pixel_math => super::binary_exponential::exp2(left), "pow2" => left.exp2(), "sin" => angle_component(left, false), @@ -114,6 +122,7 @@ pub(crate) fn evaluate(instruction: &super::instruction::Instruction, args: &[Va "rand" => crate::random::image_function(random) * left, _ => return Err(format!("unknown arithmetic operation `{op}`")), }; + *result = if flush_arithmetic { flush_subnormal(value) } else { value }; } float_value(result.get(..count).ok_or("invalid float dimensions")?) diff --git a/crates/nodes/src/function/binary_exponential.rs b/crates/nodes/src/function/binary_exponential.rs index 024d7959..60fe5bd4 100644 --- a/crates/nodes/src/function/binary_exponential.rs +++ b/crates/nodes/src/function/binary_exponential.rs @@ -56,6 +56,23 @@ pub(super) fn ln(value: f32) -> f32 { log2(value) * std::f32::consts::LN_2 } +pub(super) fn uniform_ln(value: f32) -> f32 { + if !value.is_finite() { + return value.ln(); + } + if value < f32::MIN_POSITIVE { + return 0.0; + } + let bits = value.to_bits(); + let exponent = (bits >> 23) as i32 - 126; + let mantissa = f32::from_bits((126 << 23) | (bits & MANTISSA)); + let u = 1.0 - mantissa; + // Fit the remainder of -ln(1-u) = u(1+uP(u)) over [0, 0.5]. Uniform products and sums round separately. + let coefficients = [-2.507_298, 1.991_688_4, -0.599_022_4, 0.341_097_44, 0.175_831_17, 0.251_863_93, 0.333_263_6, 0.500_000_9]; + let remainder = coefficients.into_iter().fold(1.761_320_2, |p, c| p * u + c); + -u * (1.0 + u * remainder) + exponent as f32 * std::f32::consts::LN_2 +} + pub(crate) fn signed_pixel_power(value: f32, exponent: f32) -> f32 { exp2(log2(value.abs()) * exponent).copysign(value) } @@ -88,18 +105,22 @@ pub(super) fn exp(value: f32, pixel: bool) -> f32 { if result.is_subnormal() { 0.0 } else { result } } -pub(super) fn power(base: f32, exponent: f32) -> f32 { +pub(super) fn power(base: f32, exponent: f32, pixel: bool) -> f32 { + if !pixel && (!base.is_finite() || !exponent.is_finite()) { + return base.powf(exponent); + } if base.abs() < f32::MIN_POSITIVE { return 0.0; } + let magnitude = |x| exp(exponent * if pixel { ln(x) } else { uniform_ln(x) }, pixel); if base > 0.0 { - return exp(exponent * ln(base), true); + return magnitude(base); } if exponent.fract() != 0.0 { return 0.0; } - let magnitude = exp(exponent * ln(base.abs()), true); - if exponent.abs() % 2.0 == 1.0 { -magnitude } else { magnitude } + let result = magnitude(base.abs()); + if exponent.abs() % 2.0 == 1.0 { -result } else { result } } pub(super) fn exp2(value: f32) -> f32 { diff --git a/crates/nodes/src/function/product_sum.rs b/crates/nodes/src/function/product_sum.rs index ecdc0d3c..22866bde 100644 --- a/crates/nodes/src/function/product_sum.rs +++ b/crates/nodes/src/function/product_sum.rs @@ -1,4 +1,4 @@ -use super::{instruction::Instruction, value_type}; +use super::{arithmetic::flush_subnormal, instruction::Instruction, value_type}; use materialcraft_core::Value; pub(super) struct ProductSum { @@ -16,14 +16,15 @@ impl ProductSum { if width != value_type::dimensions(c) || (width != value_type::dimensions(b) && !(self.scale_vector && value_type::dimensions(b) == 1)) { return Err("float operands must have the same dimensions".into()); } - let a = value_type::floats(a)?; - let b = value_type::floats(b)?; - let c = value_type::floats(c)?; + let a = value_type::floats(a)?.map(flush_subnormal); + let b = value_type::floats(b)?.map(flush_subnormal); + let c = value_type::floats(c)?.map(flush_subnormal); let result: [f32; 4] = std::array::from_fn(|i| match (subtract, self.product_on_right) { (true, true) => (-a[i]).mul_add(b[i], c[i]), (true, false) => a[i].mul_add(b[i], -c[i]), (false, _) => a[i].mul_add(b[i], c[i]), - }); + }) + .map(flush_subnormal); value_type::intermediate_float_value(result.get(..width).ok_or("invalid product-sum dimensions")?) } } diff --git a/crates/nodes/src/function/tests.rs b/crates/nodes/src/function/tests.rs index 6078de8d..3b8fb1f4 100644 --- a/crates/nodes/src/function/tests.rs +++ b/crates/nodes/src/function/tests.rs @@ -48,6 +48,50 @@ fn scoped_operation(scope: super::FunctionScope, op: &str, operands: &[Value], l compile(&graph, 0).unwrap().evaluate_pixel(&context, &mut EvaluationState::default()).unwrap() } +#[test] +fn runtime_arithmetic_flushes_subnormal_operands_and_results_with_their_signs() { + for scope in [super::FunctionScope::Node, super::FunctionScope::ValueProcessor, super::FunctionScope::PixelProcessor, super::FunctionScope::FxMap] { + for (op, a, b, expected) in [ + ("add", 0x00800001, 0x80800000, 0), + ("sub", 0x00800001, 0x00800000, 0), + ("mul", 0x807fffff, 0x40000000, 0x80000000), + ("mul", 0x00800000, 0x3f000000, 0), + ("div", 0x00800000, 0x40000000, 0), + ("div", 0x00800000, 0x807fffff, f32::NEG_INFINITY.to_bits()), + ] { + let args = [Value::Float(f32::from_bits(a)), Value::Float(f32::from_bits(b))]; + let actual = scoped_operation(scope, op, &args, false); + assert!(matches!(actual, Value::Float(value) if value.to_bits() == expected), "{scope:?} {op}: {actual:?}"); + } + } + let a = Value::Float2([f32::from_bits(0x00400000), f32::MIN_POSITIVE]); + let b = Value::Float2([f32::from_bits(0x00400000), 0.5]); + assert_eq!(pixel_operation("dot", &[a, b], false), Value::Float(0.0)); +} + +#[test] +fn uniform_logarithms_and_powers_use_their_measured_domains() { + for (op, input, exponent, bits) in [ + ("log", -1.0, None, 0), + ("log", f32::from_bits(1), None, 0), + ("log", 0.5625, None, 0xbf134b11), + ("log", 0.75, None, 0xbe934b11), + ("pow", 0.0, Some(-2.0), 0), + ("pow", -2.0, Some(0.5), 0), + ("pow", -2.0, Some(-3.0), 0xbe000000), + ("pow", 0.3, Some(2.4), 0x3d63befe), + ("pow", 0.563_981_1, Some(2.4), 0x3e8182ad), + ("pow", 0.95, Some(-4.125), 0x3f9e2948), + ] { + let mut inputs = vec![Value::Float(input)]; + inputs.extend(exponent.map(Value::Float)); + for scope in [super::FunctionScope::Node, super::FunctionScope::ValueProcessor] { + let Value::Float(value) = scoped_operation(scope, op, &inputs, false) else { panic!("expected a scalar") }; + assert_eq!(value.to_bits(), bits, "{op}({input}, {exponent:?})"); + } + } +} + #[test] fn runtime_pixel_square_root_normalizes_exponents_and_rounds_halfway_down() { for (input, expected) in [ @@ -316,9 +360,10 @@ fn pixel_division_multiplies_by_the_reciprocal() { let operands = [Value::Float(-2.7353475), Value::Float(1.7320508)]; assert_eq!(pixel_operation("div", &operands, false), Value::Float(f32::from_bits(0xbfca24fb))); assert_eq!(pixel_operation("div", &operands, true), Value::Float(f32::from_bits(0xbfca24fc))); - // Taking a reciprocal of this subnormal would overflow before the quotient can be computed. + // The runtime flushes both operands of this quotient, giving zero divided by zero. let tiny = Value::Float(f32::from_bits(1)); - assert_eq!(pixel_operation("div", &[tiny.clone(), tiny], false), Value::Float(1.0)); + let Value::Float(quotient) = pixel_operation("div", &[tiny.clone(), tiny], false) else { panic!("expected float") }; + assert!(quotient.is_nan()); } #[test] diff --git a/docs/parity-fixes.md b/docs/parity-fixes.md index cee243b6..428eabc4 100644 --- a/docs/parity-fixes.md +++ b/docs/parity-fixes.md @@ -253,6 +253,33 @@ Literal-only pixel graphs at 16², seed 23, give 512/768 exact pixels for each l The shared-lookup ridged root still matches 5,160/16,384 at changed roughness in F32, maximum 1.78813934e−7. Its one-octave .7 control still matches 1,847/4,096, maximum 2.38418579e−7. For positive normal x on the signed field, the reference's general power agrees with exp(y×ln(x)) on all 32,614 pixels. On .7 with exponent 1 it returns `3f333334`. Further work on general power and natural exponential is tracked with the [octave controls](#ridged-noise-octave-isolation). +### Surface irradiance and uniform power + +Surface irradiance matches **47,360/47,360 RGBA pixels in 71 renders**, maximum error zero. The total includes repeated controls. There are 31,232 F32 pixels and 5,376 each in U8, U16 and F16. The eight original polar/index combinations, the four 64² format checks and the independent 32² field all match. + +The mixed albedo (.27,.54,.88) isolated the green component. With the .54 control, the uniform expression ((c+.055)/1.055) raised to 2.4 produces F32 bits 3e8182ad. The logarithm and power controls each match 278,528/278,528 F32 pixels from 17 scalar inputs. MaterialCraft now range-reduces the uniform logarithm in base two and approximates the reduced natural logarithm with a polynomial fitted to the mathematical function. Products and sums round separately. On the broader field x=.5+i/16,384 for i=0…8,191, 8,104/8,192 distinct results match, or 1,037,312/1,048,576 pixels with each column repeated 128 times. Maximum error is 5.96046448e−8. + +The [3D surface render inputs](#3d-surface-and-volume-render-passes) define the ramp. For the flat control, use position bytes (128,128,128,255), environment bytes (64,128,192,255) and zero noise. The axis control additionally uses an F32 normal (.5,.5,1,1) and sample table (.25,.25,1,1). The original 21 controls cross these three environments with seven combinations of index and albedo at 16². For nine further renders use the following settings. + +| Input | Size / output | Seed | Index | Albedo | +|---|---|---:|---:|---| +| Ramp | 16² F32 | 31 | 3 | (.0625,.4,.75) | +| Flat | 32² in all four formats | 139 | 1 | (.375,.75,.8125) | +| Ramp | 64² F32 | 233 | 4 | (.9,.3,.6) | +| Axis | 32² F32 | 307 | 6 | (.27,.54,.88) | +| Flat | 16² F32 | 503 | 7 | (.031,.04045,.045) | +| Flat | 32² F32 | 239 | 1 | (.375,.75,.8125) | + +For the final eleven F32 renders, keep the axis field and index 6. At 16², set each of the three channels of (.27,.54,.88) in isolation, then use each component as a neutral gray. At 32² use (.203125,.3125,.45625), (.6125,.776,.928), (.1546875,.478,.832), white and (.01,.03,.04). Seeds run from 473 through 483 in that order. All 6,656 pixels match. + +**Function controls.** In 16² parameter, pixel, stamp and typed-value graphs, 18 exposed logarithm arguments give 13,824/13,824 exact image pixels and 18/18 typed floats. The 25 exposed power pairs give 19,200/19,200 pixels and 25/25 floats. Five literal logarithms and four literal powers give 6,912/6,912 pixels and 9/9 floats. All maximum errors are zero. Cases include signed zero, the nearest floats on each side of the minimum positive normal, negative bases with positive and negative integer exponents, negative bases with fractional exponents, and zero to the zeroth power. + +At the subnormal boundary, runtime addition, subtraction, multiplication and division use signed zero for subnormal operands and results. On seven 32² F32 fields, those operations, a fused product and sum, a sum of two products and a two-channel dot product match 7,168/7,168 raw pixels, including signed zeros and nonfinite bit patterns. Maximum finite error is zero. Four further 16×16-output probes over sixteen scalar pairs match 16,384/16,384 pixel-processor outputs. For minimal discriminators use 2⁻¹²⁶ × .5, −2⁻¹²⁷ × 8, the smallest subnormal divided by itself and the product of 2⁻¹²⁶ and .5 added to 2⁻¹²⁶ in one fused operation. A plain stamp reading the twelve near-zero inputs still matches 1,792/3,072 F32 pixels, maximum 1.17549421e−38. Nonfinite typed values could not be compared through the JSON transport. + +**Remaining roots.** The 3D volume mask matches 466,232/467,456 pixels in 35 renders. All integer and half outputs match, and 113,976/115,200 F32 pixels match with maximum error 3.81469727e−6. In eleven of these controls use an F32 position field ((x+.5)/N,(y+.5)/N,((11x+23y+3xy) mod 127)/126,1), scale .375, size (.75,1,.625) and world position (.375,.5625,.6875). The 64² box at rotation (.125,−.1875,.0625), feather .15625 and seed 197 matches every U8, U16 and F16 pixel and 4,061/4,096 F32 pixels. The F32 repeat at seed 613 has the same count and maximum of 1.90734863e−6. + +Blackbody matches 34,048/42,496 pixels in 19 renders, including all 4,352 pixels in each of U8, U16 and F16. F32 matches 20,992/29,440 with maximum error 1.19209290e−7. Use temperatures 1733, 2718.5, 5555, 6500, 7111.25, 9900.5 and 18000 at sizes 16, 32, 16, 64, 32, 16 and 16, with seeds 29, 197, 113, 137, 371, 89 and 83 respectively. Run all four formats at 5555 and F32 at every other temperature. + ### Stored precision in transform mip levels | Root | Cases | Exact RGBA pixels / compared | Maximum error | @@ -389,7 +416,7 @@ The **uniform natural exponential** uses the same [seventh-degree polynomial](#n To reproduce the parameter cases, broadcast exp(start+column×step) down each column, with arguments, multiplication and addition in F32. The first 24 (start,step) pairs are (0,1/128), (−1,1/128), (−8,1/8), (−.5,1/32768), (.625,1/16384), (−4,1/37), (−3,1/19), (32,1/64), (−31,1/64), (.0625,1/128), (.125,1/128), (.28125,1/1024), (.5,1/512), (.8125,1/2048), (.03125,1/128), (.3,1/128), (.4,1/256), (.9,1/4096), (.2,1/32768), (1,1/64), (3,1/16), (.6,1/2048), (.25,1/256), (.5625,1/1024). The next 16 use (j×ln(2)/16,ln(2)/2048) for j=0…15. The ten wide pairs are (−99,1/32), (−90,1/64), (−88.5,1/128), (−87.75,1/256), (−24,1/31), (−3,1/63), (.2,1/59), (17,1/32), (81,1/32), (87.5,1/64). The twelve independent pairs are (.500032187,.0000311367), (.5316711,.0013927), (.5062,.0029721), (.904311,.00049123), (.7009667,.0011769), (.222237,.0003721), (1.103987,.0139583), (3.14159,.053537), (13.175,.0002953), (.43291,.027716), (−89.112,.02023), (84.67,.032698). -**Surface irradiance** retains 2,304/5,376 exact pixels in the 21 parameter and environment comparisons, maximum 2.98023224e−8. The natural logarithm used in the uniform albedo power remains open. +Before the uniform power correction, surface irradiance matched 2,304/5,376 pixels in the 21 parameter and environment comparisons, maximum 2.98023224e−8. The current run matches all 5,376. [Surface irradiance and uniform power](#surface-irradiance-and-uniform-power) ### Signed Levels, driven grayscale weights and grayscale gradients diff --git a/docs/sbs-root-nodes.md b/docs/sbs-root-nodes.md index c77bde2f..3eae5d78 100644 --- a/docs/sbs-root-nodes.md +++ b/docs/sbs-root-nodes.md @@ -35,7 +35,7 @@ A graph may accept input pins and still be a root under the dependency criterion Statuses: **Not checked**, **In progress**, **Parity** (exact pixels or typed values for the linked measured cases), or **Too hard** (reason recorded). Function calls do not count as regular graph dependencies. -The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **227 Parity**, **24 In progress** and **295 Too hard**. The November 17 and 18 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) +The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard**. The current inventory has **228 Parity**, **24 In progress** and **294 Too hard**. The November 17 and 18 comparisons include raw counts, output formats and remaining differences. [November 17 measurements](parity-fixes.md#2026-11-17-root-comparisons) · [November 18 measurements](parity-fixes.md#2026-11-18-root-comparisons) [Grayscale sampler measurements](parity-fixes.md#grayscale-sampling-of-color-inputs) · [Value sampling across 240 typed comparisons](parity-fixes.md#value-processor-texture-filtering) @@ -58,7 +58,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [3d_simplex_noise.sbs/3d_simplex_noise](../assets/sbs/3d_simplex_noise.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [3d_texture_jump_flood.sbs/3d_texture_jump_flood_iteration](../assets/sbs/3d_texture_jump_flood.sbs) | 1 | Yes | [Parity: 5 cases](parity-fixes.md#verified-cases) | | [3d_texture_position.sbs/3d_texture_position](../assets/sbs/3d_texture_position.sbs) | 0 | No | [Parity: native 4K atlas](parity-fixes.md#verified-cases) | -| [3d_texture_render.sbs/3d_texture_surface_render_irradiance](../assets/sbs/3d_texture_render.sbs) | 6 | Yes | [In progress · direction-dependent float error](parity-fixes.md#3d-surface-and-volume-render-passes) | +| [3d_texture_render.sbs/3d_texture_surface_render_irradiance](../assets/sbs/3d_texture_render.sbs) | 6 | Yes | [Parity · 47,360 exact pixels in 71 renders](parity-fixes.md#surface-irradiance-and-uniform-power) | | [3d_texture_render.sbs/3d_texture_surface_render_position](../assets/sbs/3d_texture_render.sbs) | 1 | Yes | [In progress · earlier camera cases exact, constant-zero field isolates a residual](parity-fixes.md#levels-endpoints-camera-tangents-and-uniform-exponentials) | | [3d_texture_render.sbs/3d_texture_volume_render_ibl_pass](../assets/sbs/3d_texture_render.sbs) | 6 | Yes | [In progress · quantified dithering and density differences](parity-fixes.md#3d-surface-and-volume-render-passes) | | [3d_texture_render.sbs/3d_texture_volume_render_light_pass](../assets/sbs/3d_texture_render.sbs) | 4 | Yes | [In progress · nonzero-density lighting differs](parity-fixes.md#3d-surface-and-volume-render-passes) | @@ -66,7 +66,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [3d_texture_transform.sbs/3d_texture_offset_color](../assets/sbs/3d_texture_transform.sbs) | 1 | No | [Parity: 5 cases](parity-fixes.md#verified-cases) | | [3d_texture_transform.sbs/3d_texture_offset_grayscale](../assets/sbs/3d_texture_transform.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [3d_viewer.sbs/ibl_specular_contrib_anisotropic/panoramic_lod](../assets/sbs/3d_viewer.sbs) | 1 | Yes | [Parity · 20 cases, 219,392 exact pixels](parity-fixes.md#large-transform-offsets-and-additive-blends) | -| [3d_volume_mask.sbs/3d_volume_mask](../assets/sbs/3d_volume_mask.sbs) | 1 | No | [In progress · box rotation and feathering differ](parity-fixes.md#3d-volume-mask-and-worley-noise) | +| [3d_volume_mask.sbs/3d_volume_mask](../assets/sbs/3d_volume_mask.sbs) | 1 | No | [In progress · 466,232/467,456 pixels, F32 error](parity-fixes.md#surface-irradiance-and-uniform-power) | | [3d_worley_noise.sbs/3D_worley_noise](../assets/sbs/3d_worley_noise.sbs) | 1 | No | [In progress · random draws measured, per-pixel starting state differs](parity-fixes.md#pixel-processor-random-draws) | | [alveolus.sbs/alveolus](../assets/sbs/alveolus.sbs) | 0 | Yes | [In progress · 64² format sweep exact, larger fields differ](parity-fixes.md#alveolus-quadrant-placement-and-falloff) | | [angle_to_vector.sbs/angle_to_vector](../assets/sbs/angle_to_vector.sbs) | 1 | No | [Parity: 4 cases](parity-fixes.md#verified-cases) | @@ -80,7 +80,7 @@ The first pass covered all **546 roots**, with **166 Parity** and **380 Too hard | [bevel_smooth.sbs/blur_gaussian_grayscale](../assets/sbs/bevel_smooth.sbs) | 1 | Yes | [Too hard: nonzero blur](parity-fixes.md#remaining-differences) | | [bevel_smooth.sbs/debug/bevel_smooth_debug_position](../assets/sbs/bevel_smooth.sbs) | 1 | Yes | [Too hard: stamp coverage](parity-fixes.md#remaining-differences) | | [bevel_smooth.sbs/jump_flood_segment_iteration](../assets/sbs/bevel_smooth.sbs) | 1 | Yes | [Too hard: segment selection](parity-fixes.md#remaining-differences) | -| [blackbody.sbs/blackbody](../assets/sbs/blackbody.sbs) | 0 | No | [Too hard: float rounding](parity-fixes.md#remaining-differences) | +| [blackbody.sbs/blackbody](../assets/sbs/blackbody.sbs) | 0 | No | [In progress · 34,048/42,496 pixels, F32 error](parity-fixes.md#surface-irradiance-and-uniform-power) | | [blend.sbs/add](../assets/sbs/blend.sbs) | 3 | Yes | [Parity: 5 cases](parity-fixes.md#verified-cases) | | [blend.sbs/add_sub](../assets/sbs/blend.sbs) | 3 | Yes | [Parity: 4 cases](parity-fixes.md#verified-cases) | | [blend.sbs/color](../assets/sbs/blend.sbs) | 3 | No | [Parity · 18 cases, 171,264 exact pixels](parity-fixes.md#gradient-interpolation-color-blend-and-chrominance) |