leiting-bim 2.1.127 → 2.1.128

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "leiting-bim",
3
3
  "private": false,
4
- "version": "2.1.127",
4
+ "version": "2.1.128",
5
5
  "type": "module",
6
6
  "main": "./leiting-bim.umd.js",
7
7
  "module": "./leiting-bim.es.js",
@@ -2356,10 +2356,10 @@ function To(a, t) {
2356
2356
  return s.freely == "vertical" ? r += "vec4 colorImage = texture(image, vec2(fract(float(" + s.count + ")*st.t " + s.direction + ` time), fract(st.s)));
2357
2357
  ` : r += "vec4 colorImage = texture(image, vec2(fract(float(" + s.count + ")*st.s " + s.direction + ` time), fract(st.t)));
2358
2358
  `, r += `vec4 fragColor;
2359
- fragColor.rgb = (colorImage.rgb) / 1.0;
2359
+ fragColor.rgb = (color.rgb) / 1.0;
2360
2360
  fragColor = czm_gammaCorrect(fragColor);
2361
- `, r += ` material.diffuse = colorImage.rgb;
2362
- material.alpha = colorImage.a;
2361
+ `, r += ` material.diffuse = color.rgb;
2362
+ material.alpha = colorImage.a * color.a;
2363
2363
  material.emission = fragColor.rgb;
2364
2364
 
2365
2365
  return material;
@@ -2370,7 +2370,7 @@ function To(a, t) {
2370
2370
  fabric: {
2371
2371
  type: e,
2372
2372
  uniforms: {
2373
- color: new a.Color(1, 0, 0, 0.5),
2373
+ color: t.color || new a.Color(1, 1, 1, 1),
2374
2374
  image: t.image,
2375
2375
  time: 0
2376
2376
  },