From 87b95625ffd3c96761446e9fc94a2303e0c476c3 Mon Sep 17 00:00:00 2001 From: Orkuncakilkaya Date: Wed, 30 Sep 2026 15:25:43 +0300 Subject: [PATCH] render3d: ground_fill's golden conformance data, generated by tests/gen/ground_fill_golden.ludic (two runs byte-identical) Co-Authored-By: Claude Opus 5.5 --- .../tests/ground_fill_golden.json | 135 ++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 packages/ludic.render3d/tests/ground_fill_golden.json diff --git a/packages/ludic.render3d/tests/ground_fill_golden.json b/packages/ludic.render3d/tests/ground_fill_golden.json new file mode 100644 index 00000000..daf37581 --- /dev/null +++ b/packages/ludic.render3d/tests/ground_fill_golden.json @@ -0,0 +1,135 @@ +{ + "about": "ludic.render3d ground_fill conformance (tests/ground_fill_test.ludic; regenerate with tests/gen/ground_fill_golden.ludic)", + "numbers": "every float is its IEEE-754 single-precision bits as a signed 32-bit int", + "lerp_order": "a + (b - a) * t", + "lerp": [ + [1065353216, 1071225242, 1063675494, 1070638040, 1070638039], + [1073741824, 1088421888, 1060487823, 1085381018, 1085381017], + [1086408622, 1071393014, 1059296641, 1079108521, 1079108520], + [-1072944906, 1080536596, 1063138623, 1077319900, 1077319899] + ], + "yaw": {"yaw": 1056964608, "sin": 1056274244, "cos": 1063299392, "rule": "p' = (c*x + s*z, y, -s*x + c*z)", + "x_axis": [1063299392, 0, -1091209404], "z_axis": [1056274244, 0, 1063299392]}, + "hash": [ + [0, 0, 0, 0, 0, 0, 0], + [1, 2, 3, 4, 5, 6, 1059717290], + [0, 3, -2, 1, 458761, 2, 1057636647], + [13, -128, 127, 3, 32767, 5, 1049010834], + [63, -1, -1, 0, 1376277, 7, 1057639637], + [-5, 100000, -100000, 2, 123456789, 1, 1063465007], + [2147483647, -2147483647, 65536, 3, -1, 4, 1040271092] + ], + "density": {"layer": 0, "half": 4096, "ter_ox": 0, "ter_oz": 0, "texel_m": 2, "rule": "fx = (x - ter_ox + half) / texel - 0.5, bilinear, / 255", + "tx0": 2094, "tz0": 2014, "w": 20, + "r": [68,121,174,227,255,13,66,119,172,225,255,11,64,117,170,223,255,9,62,115,165,218,255,4,57,110,163,216,255,2,55,108,161,214,255,0,53,106,159,212,255,0,48,101,154,207,255,0,46,99,152,205,255,0,44,97,150,203,255,0,39,92,145,198,251,0,37,90,143,196,249,0,35,88,141,194,247,0,33,86,136,189,242,0,28,81,134,187,240,0,26,79,132,185,238,0,24,77,130,183,233,255,19,72,125,178,231,255,17,70,123,176,229,255,15,68,121,174,227,255,10,63,116,169,222,255,8,61,114,167,220,255,6,59,112,165,218,255,4,57,107,160,213,255,0,52,105,158,211,255,0,50,103,156,209,255,0,48,101,154,204,255,0,43,96,149,202,255,0,41,94,147,200,253,0,39,92,145,198,251,0,34,87,140,193,246,0,32,85,138,191,244,0,30,83,136,189,242,0,28,78,131,184,237,0,23,76,129,182,235,0,21,74,127,180,233,255,19,72,125,175,228,255,14,67,120,173,226,255,12,65,118,171,224,255,10,63,116,169,222,255,5,58,111,164,217,255,3,56,109,162,215,255,1,54,107,160,213,255,0,49,102,155,208,255,0,47,100,153,206,255,0,45,98,151,204,255,0,43,96,146,199,252,0,38,91,144,197,250,0,36,89,142,195,248,0,34,87,140,193,243,0,29,82,135,188,241,0,27,80,133,186,239,0,25,78,131,184,237,0,20,73,126,179,232,255,18,71,124,177,230,255,16,69,122,175,228,255,14,67,117,170,223,255,9,62,115,168,221,255,7,60,113,166,219,255,5,58,111,164,214,255,0,53,106,159,212,255,0,51,104,157,210,255,0,49,102,155,208,255,0,44,97,150,203,255,0,42,95,148,201,254,0,40,93,146,199,252,0,38], + "g": [124,153,182,211,240,13,42,71,100,129,158,187,216,245,18,47,76,105,134,163,137,166,195,224,253,26,55,84,113,142,171,200,229,2,31,60,89,118,147,176,150,179,208,237,10,39,68,97,126,155,184,213,242,15,44,73,102,131,160,189,163,192,221,250,23,52,81,110,139,168,197,226,255,28,57,86,115,144,173,202,176,205,234,7,36,65,94,123,152,181,210,239,12,41,70,99,128,157,186,215,189,218,247,20,49,78,107,136,165,194,223,252,25,54,83,112,141,170,199,228,202,231,4,33,62,91,120,149,178,207,236,9,38,67,96,125,154,183,212,241,215,244,17,46,75,104,133,162,191,220,249,22,51,80,109,138,167,196,225,254,228,1,30,59,88,117,146,175,204,233,6,35,64,93,122,151,180,209,238,11,241,14,43,72,101,130,159,188,217,246,19,48,77,106,135,164,193,222,251,24,254,27,56,85,114,143,172,201,230,3,32,61,90,119,148,177,206,235,8,37,11,40,69,98,127,156,185,214,243,16,45,74,103,132,161,190,219,248,21,50,24,53,82,111,140,169,198,227,0,29,58,87,116,145,174,203,232,5,34,63,37,66,95,124,153,182,211,240,13,42,71,100,129,158,187,216,245,18,47,76,50,79,108,137,166,195,224,253,26,55,84,113,142,171,200,229,2,31,60,89,63,92,121,150,179,208,237,10,39,68,97,126,155,184,213,242,15,44,73,102,76,105,134,163,192,221,250,23,52,81,110,139,168,197,226,255,28,57,86,115,89,118,147,176,205,234,7,36,65,94,123,152,181,210,239,12,41,70,99,128,102,131,160,189,218,247,20,49,78,107,136,165,194,223,252,25,54,83,112,141,115,144,173,202,231,4,33,62,91,120,149,178,207,236,9,38,67,96,125,154]}, + "clearings_rule": "floor + (1 - floor) * smoothstep((d - r_in) / (r_out - r_in)), 1 past r_out", + "clearings": [[1121976320, -1035993088, 1077936128, 1089470464, 1048576000]], + "cover": {"fill": {"layer": 0, "steps": [1073741824, 1075838976, 1068708659, 1068708659], "jitter": 1065353216, "scale_lo": 1058642330, "scale_hi": 1068708659, "wind_lo": 1056964608, "wind_hi": 1065353216, "scale_var": 1045220557, "band_grow": 1041865114, "sink": 1022739087, "trample": 1, "solid": 0}, "ox": 0, "oz": 0, "size": 1107296256, "cx": 3, "cz": -2, "band": 1, "things": [ + [131072, 1120722131, -1031988814, 1063839030, 1075514781, 1061975106, 1058404922], + [327680, 1121801699, -1032364098, 1068919519, 1063792719, 1049525222, 1060683454], + [458752, 1122465832, -1031889000, 1069448012, 1086016211, 1049231304, 1060531988], + [524288, 1122652719, -1032091122, 1069044046, 1084335045, 1042065604, 1057936960], + [786432, 1124005574, -1031944401, 1066394760, 1066870402, 1064697147, 1060653764], + [1, 1120018591, -1032685244, 1067346335, 1085558634, 1054041374, 1062133124], + [65537, 1120371200, -1032954977, 1065975606, 1083518089, 1065129413, 1057612078], + [262145, 1121356718, -1032479330, 1066928675, 1024682493, 1064430405, 1058254252], + [327681, 1121606079, -1033046405, 1068851011, 1077737535, 1064480426, 1057363182], + [458753, 1122328230, -1032827722, 1070792961, 1076663355, 1056375478, 1064587742], + [65538, 1120463992, -1033613436, 1060457593, 1074573362, 1057445941, 1062637456], + [131074, 1120572733, -1033661622, 1062624664, 1082113703, 1062061190, 1057664958], + [262146, 1121314977, -1033482165, 1067453131, 1084681630, 1049680874, 1064772764], + [327682, 1121561232, -1033237059, 1067452030, 1077105671, 1053690052, 1057286626], + [458754, 1122374807, -1033751933, 1068681354, 1072698788, 1052240590, 1060365712], + [655362, 1123332418, -1033652843, 1066408536, 1054991633, 1062544760, 1059281512], + [720898, 1123715890, -1033428095, 1067696300, 1076179498, 1043138132, 1064618752], + [3, 1120166220, -1033968424, 1062267741, 1085755275, 1058969154, 1060467825], + [131075, 1120811203, -1033876423, 1062497849, 1079576187, 1052427156, 1058219821], + [196611, 1120960981, -1033939129, 1067260015, 1061916453, 1050262064, 1062985215], + [327683, 1121744884, -1034111018, 1068186170, 1086195927, 1063684314, 1064611040], + [393219, 1121944133, -1034121688, 1067081453, 1084125171, 1046733352, 1061951717], + [458755, 1122336852, -1033860481, 1066352794, 1055127513, 1061107994, 1063479044], + [655363, 1123201280, -1034160112, 1065573331, 1086839112, 1061752269, 1064321610], + [786435, 1123827217, -1034205505, 1068871523, 1079170585, 1056558946, 1061642159], + [4, 1120099678, -1034750794, 1061339931, 1080569423, 1057505192, 1057146090], + [131076, 1120789658, -1034810383, 1063347522, 1086251169, 1034781696, 1064206448], + [262148, 1121453169, -1034634739, 1068136211, 1076486477, 1055007100, 1060210905], + [589828, 1123009927, -1034824436, 1062703839, 1085088285, 1064575722, 1057569190], + [720900, 1123581713, -1034680000, 1066931396, 1074502627, 1050478582, 1058532338], + [131077, 1120685847, -1035628450, 1067060154, 1066287690, 1060023183, 1058700876], + [262149, 1121200649, -1035086950, 1067262377, 1074667727, 1061676180, 1060092720], + [524293, 1122785508, -1035296987, 1066758411, 1068971106, 1063885378, 1061440870], + [589829, 1122835146, -1035370184, 1064284565, 1085271522, 1058223749, 1062305456], + [6, 1120071083, -1035796082, 1064759508, 1051495341, 1063759425, 1063330882], + [65542, 1120429090, -1035765120, 1062635826, 1072326525, 1052336760, 1061079065], + [196614, 1121004046, -1036017291, 1068151216, 1083200182, 1046648512, 1065104064], + [327686, 1121734054, -1035736794, 1068830219, 1083091576, 1060148856, 1058380053], + [589830, 1123049340, -1035750522, 1068315059, 1078742942, 1053434130, 1057814420], + [655366, 1123252776, -1036107092, 1069084182, 1049407803, 1059915340, 1059287390], + [720902, 1123688935, -1036027332, 1067353178, 1075493805, 1052157150, 1057779508], + [7, 1119972395, -1036776087, 1065928939, 1084187056, 1058669209, 1058172888], + [131079, 1120695165, -1036807948, 1065803870, 1085651203, 1064428109, 1063126413], + [262151, 1121305432, -1036505111, 1069874039, 1054543943, 1063591813, 1063478878], + [589831, 1122949063, -1036739210, 1066469305, 1077561851, 1046913520, 1057635168], + [655367, 1123267161, -1036567612, 1065991224, 1075220436, 1058549287, 1059914820], + [720903, 1123799626, -1036435331, 1069770113, 1072588927, 1053806348, 1057430074], + [8, 1120102246, -1037422342, 1064335519, 1066268080, 1031625520, 1060565898], + [196616, 1121145408, -1037253740, 1066916402, 1060346876, 1057616950, 1061816063], + [262152, 1121486820, -1037400879, 1063269927, 1083056872, 1040859600, 1063478826], + [655368, 1123239728, -1037186555, 1066870852, 1084093218, 1027108672, 1063293641], + [720904, 1123691123, -1037347934, 1069066122, 1085326914, 1017624512, 1059328364], + [9, 1120054424, -1038292433, 1067066116, 1070302768, 1052711020, 1062115508], + [131081, 1120732507, -1037834558, 1067627931, 1013278155, 1061370947, 1059034438], + [262153, 1121369458, -1038212635, 1066866956, 1014830353, 1060618345, 1063656644], + [327689, 1121588751, -1038330345, 1063079095, 1078405272, 1064082613, 1063230570], + [720905, 1123722622, -1037841175, 1068806914, 1084268125, 1060276795, 1063221992], + [65546, 1120304158, -1038861964, 1066184590, 1076017353, 1040823344, 1060286255], + [196618, 1120885739, -1038486810, 1070801036, 1086041023, 1057627422, 1062033764], + [393226, 1121977389, -1038821564, 1066120053, 1061555987, 1049470312, 1061120434], + [524298, 1122776602, -1038830134, 1066173247, 1080610903, 1056751238, 1063824694], + [589834, 1123096416, -1038584012, 1070866520, 1085814179, 1062620434, 1058791728], + [65547, 1120429794, -1039083608, 1068590716, 1072090856, 1061374698, 1059210362], + [131083, 1120553328, -1039112057, 1066175623, 1072596269, 1054427332, 1062420510], + [458763, 1122234379, -1039228072, 1066196971, 1078080975, 1058563850, 1065351816], + [655371, 1123225640, -1039075734, 1071814252, 1065450289, 1041046272, 1058612354], + [786443, 1124045186, -1039406495, 1065956757, 1086915761, 1047327912, 1059610038], + [12, 1120172331, -1040047278, 1069387899, 1079288505, 1024762976, 1060390814], + [65548, 1120247151, -1039775524, 1068907881, 1084308911, 1065073267, 1060439949], + [131084, 1120615769, -1039878030, 1068947240, 1083502790, 1056931844, 1057488786], + [196620, 1121118525, -1040010303, 1061322280, 1077929596, 1052826214, 1064042924], + [589836, 1123092738, -1039727871, 1068558543, 1084332302, 1049315840, 1057920874], + [655372, 1123240528, -1039705474, 1068208532, 1086445325, 1062070265, 1061650604] + ]}}, + "solid": {"fill": {"layer": 0, "steps": [1082130432, 1084227584, 1090519040, 1094713344], "jitter": 1061997773, "scale_lo": 1061997773, "scale_hi": 1070386381, "wind_lo": 1056964608, "wind_hi": 1065353216, "scale_var": 1045220557, "band_grow": 1050253722, "sink": 1022739087, "trample": 0, "solid": 1}, "ox": 0, "oz": 0, "size": 1107296256, "cx": 3, "cz": -2, "far_band": 2, "things": [ + [16582144, 0, 1120293028, -1032252411, 1068709886, 1085262221, 1065248692, 1058250104, 0], + [16582176, 262144, 1122044225, -1032619009, 1070248319, 1073719313, 1064173498, 1063466348, 1], + [16582200, 458752, 1123660781, -1032485573, 1066304277, 1069870346, 1064911989, 1057976674, 0], + [16582161, 131073, 1121004655, -1033560481, 1065826519, 1069762310, 1048734550, 1062419942, 0], + [16582185, 327681, 1122891219, -1033334636, 1064534541, 1049917068, 1060399914, 1057515134, 0], + [16582193, 393217, 1123227094, -1033072107, 1063157924, 1084632888, 1049823870, 1061233682, 1], + [16582146, 2, 1120098383, -1034220530, 1064891188, 1071495521, 1049736648, 1058135006, 0], + [16582162, 131074, 1121330806, -1034400123, 1066240901, 1081202597, 1064297738, 1061589532, 1], + [16582170, 196610, 1121648030, -1034385209, 1067471220, 1067006313, 1063288699, 1064312224, 0], + [16582186, 327682, 1122859183, -1034545454, 1063397635, 1080375926, 1052510306, 1057817892, 0], + [16582194, 393218, 1123258040, -1034666854, 1065666160, 1076070243, 1059294668, 1063564212, 0], + [16582202, 458754, 1123898810, -1034464750, 1070302032, 1083310160, 1046855468, 1064929602, 0], + [16582179, 262147, 1122302705, -1035424756, 1065501747, 1082580068, 1048318644, 1063732166, 1], + [16582187, 327683, 1122641852, -1035108121, 1066046128, 1085315314, 1033693656, 1063163313, 0], + [16582195, 393219, 1123474480, -1035172904, 1068708433, 1085923941, 1013630976, 1058432680, 0], + [16582203, 458755, 1123901206, -1035453673, 1069480276, 1068449825, 1065184737, 1061276845, 0], + [16582148, 4, 1120270582, -1036144562, 1066589869, 1063486081, 1058251797, 1060618520, 1], + [16582172, 196612, 1121632793, -1036239652, 1068097589, 1069693465, 1064717160, 1057397812, 1], + [16582188, 327684, 1122789459, -1036866786, 1064673176, 1086879325, 1065325129, 1064975418, 0], + [16582196, 393220, 1123285593, -1036479532, 1067976026, 1082656672, 1014975296, 1059244680, 0], + [16582157, 65541, 1120532302, -1037364348, 1068574045, 1083796886, 1062530079, 1057480249, 0], + [16582165, 131077, 1121217218, -1037958810, 1071536019, 1083057254, 1029748784, 1059703596, 0], + [16582173, 196613, 1121828561, -1037307962, 1064590064, 1079332061, 1056723512, 1058688736, 1], + [16582166, 131078, 1121177097, -1038543456, 1070246213, 1052418781, 1058206170, 1064924534, 0], + [16582182, 262150, 1122224782, -1038960375, 1066984436, 1078036756, 1052132012, 1059085758, 0], + [16582206, 458758, 1123771428, -1038852112, 1063183247, 1081742483, 1044344244, 1058875344, 1], + [16582167, 131079, 1121082601, -1039914496, 1064736625, 1086794242, 1054124508, 1059956726, 0], + [16582175, 196615, 1121761085, -1039599090, 1067374368, 1067261885, 1058627350, 1062771573, 0], + [16582191, 327687, 1122751322, -1039341503, 1069678485, 1068499230, 1053671156, 1059624745, 0], + [16582199, 393223, 1123213029, -1039687681, 1071554254, 1053024656, 1029041920, 1063208826, 1] + ]}} +}