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.
Files changed (2) hide show
  1. package/dist/index.js +12 -3
  2. 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
- let b = exp(a) * in.color.a;
394
- return vec4f(in.color.rgb * b, b);
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>,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dgs-js",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/**/*"