Fix Spherical Harmonics not included in SPZ transcoding. (#83)

This commit is contained in:
Andreas Sundquist
2025-06-30 15:39:01 -07:00
committed by GitHub
parent cac6b8195f
commit c0dff7fafb
+13
View File
@@ -332,6 +332,19 @@ export function decodeKsplat(
);
if (sphericalHarmonicsDegree >= 1 && sh1) {
for (const [i, key] of sh1Index.entries()) {
sh1[i] = getSh(splatOffset, key);
}
if (sh2) {
for (const [i, key] of sh2Index.entries()) {
sh2[i] = getSh(splatOffset, key);
}
}
if (sh3) {
for (const [i, key] of sh3Index.entries()) {
sh3[i] = getSh(splatOffset, key);
}
}
shCallback?.(i, sh1, sh2, sh3);
}
}