dgs-js 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -333,7 +333,9 @@ struct Params
|
|
|
333
333
|
time: f32,
|
|
334
334
|
|
|
335
335
|
focalLengths: vec2f,
|
|
336
|
-
viewPort: vec2f
|
|
336
|
+
viewPort: vec2f,
|
|
337
|
+
|
|
338
|
+
pointModeSize: f32
|
|
337
339
|
};
|
|
338
340
|
|
|
339
341
|
struct RenderedGaussian
|
|
@@ -390,8 +392,15 @@ fn fs(in: VertexOutput) -> @location(0) vec4f
|
|
|
390
392
|
discard;
|
|
391
393
|
}
|
|
392
394
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
+
if(u_params.pointModeSize > 0.0)
|
|
396
|
+
{
|
|
397
|
+
return in.color;
|
|
398
|
+
}
|
|
399
|
+
else
|
|
400
|
+
{
|
|
401
|
+
let b = exp(a) * in.color.a;
|
|
402
|
+
return vec4f(in.color.rgb * b, b);
|
|
403
|
+
}
|
|
395
404
|
}
|
|
396
405
|
`;var rt=` struct VSOut {
|
|
397
406
|
@builtin(position) pos : vec4<f32>,
|