Skip to content

Commit 618f364

Browse files
more formatting
1 parent b322808 commit 618f364

File tree

1 file changed

+8
-8
lines changed
  • extensions/2.0/Khronos/KHR_gaussian_splatting

1 file changed

+8
-8
lines changed

extensions/2.0/Khronos/KHR_gaussian_splatting/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,27 +53,26 @@ Extending glTF node:
5353
"accessors": [
5454
{
5555
"type": "VEC3",
56-
"componentType": 5126 // FLOAT
57-
},
56+
"componentType": 5126
5857
{
5958
"type": "VEC4",
60-
"componentType": 5121, // UNSIGNED_BYTE
59+
"componentType": 5121,
6160
"normalized": true
6261
},
6362
{
64-
"type": "VEC4", // quaternion
65-
"componentType": 5126 // FLOAT
63+
"type": "VEC4",
64+
"componentType": 5126
6665
},
6766
{
68-
"type": "VEC3", //scale
69-
"componentType": 5126 // FLOAT
67+
"type": "VEC3",
68+
"componentType": 5126
7069
}
7170
],
7271
"meshes": [
7372
{
7473
"primitives": [
7574
{
76-
"mode": 0, // POINTS
75+
"mode": 0,
7776
"attributes": {
7877
"POSITION": 0,
7978
"COLOR_0": 1,
@@ -172,6 +171,7 @@ vec3 calculateConic(vec3 covariance2D)
172171
float det = covariance2D.x * covariance2D.z - covariance2D.y * covariance2D.y;
173172
return vec3(covariance2D.z, -covariance2D.y, covariance2D.x) * (1. / det);
174173
}
174+
```
175175

176176
```glsl
177177
//https://github.com/graphdeco-inria/diff-gaussian-rasterization/blob/59f5f77e3ddbac3ed9db93ec2cfe99ed6c5d121d/cuda_rasterizer/forward.cu#L330

0 commit comments

Comments
 (0)