Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shi-yan committed Aug 4, 2024
1 parent 8fe0a79 commit 2ca3370
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Advanced/gaussian_splatting.html
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ <h2 >5.8 Gaussian Splatting</h2><p><a class="link" href="https://aras-p.info/blo
var basisVector2:vec2&lt;f32&gt; = eigenVector2 * min(sqrt(eigenValue2)*4, maxSplatSize);
readback[gid] = vec4&lt;f32&gt;(basisVector1,basisVector2);
var dis:vec4&lt;f32&gt; = projection * modelView * center;
distance[gid] = u32(dis.z / dis.w * f32(0xFFFFFFFF &gt;&gt; 8));
distance[gid] = u32(((dis.z / dis.w+1.0)*0.5) * f32(0xFFFFFFFF &gt;&gt; 8));
basis[gid] = vec4&lt;f32&gt;(basisVector1, basisVector2);
} else {
distance[gid] = 0xFFFFFFFF;
Expand Down
4 changes: 2 additions & 2 deletions code/5_08_gaussian_splatting_5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@
var basisVector2:vec2<f32> = eigenVector2 * min(sqrt(eigenValue2)*4, maxSplatSize);
readback[gid] = vec4<f32>(basisVector1,basisVector2);
var dis:vec4<f32> = projection * modelView * center;
distance[gid] = u32(dis.z / dis.w * f32(0xFFFFFFFF >> 8));
distance[gid] = u32(((dis.z / dis.w+1.0)*0.5) * f32(0xFFFFFFFF >> 8));
basis[gid] = vec4<f32>(basisVector1, basisVector2);
} else {
distance[gid] = 0xFFFFFFFF;
Expand Down Expand Up @@ -1443,7 +1443,7 @@
},
color: {
operation: "add",
srcFactor: 'one',
srcFactor: 'src-alpha',
dstFactor: 'one-minus-src-alpha',
}
}
Expand Down

0 comments on commit 2ca3370

Please sign in to comment.