mirror of
https://github.com/storytold/spark.git
synced 2026-10-09 00:09:53 +00:00
Fix Spherical Harmonics not included in SPZ transcoding. (#83)
This commit is contained in:
committed by
GitHub
parent
cac6b8195f
commit
c0dff7fafb
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user