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.
@@ -16,15 +16,15 @@
16
16
  `;return s.freely=="vertical"?r+="vec4 colorImage = texture(image, vec2(fract(float("+s.count+")*st.t "+s.direction+` time), fract(st.s)));
17
17
  `:r+="vec4 colorImage = texture(image, vec2(fract(float("+s.count+")*st.s "+s.direction+` time), fract(st.t)));
18
18
  `,r+=`vec4 fragColor;
19
- fragColor.rgb = (colorImage.rgb) / 1.0;
19
+ fragColor.rgb = (color.rgb) / 1.0;
20
20
  fragColor = czm_gammaCorrect(fragColor);
21
- `,r+=` material.diffuse = colorImage.rgb;
22
- material.alpha = colorImage.a;
21
+ `,r+=` material.diffuse = color.rgb;
22
+ material.alpha = colorImage.a * color.a;
23
23
  material.emission = fragColor.rgb;
24
24
 
25
25
  return material;
26
26
  }
27
- `,r};return a.Material._materialCache.addMaterial(e,{fabric:{type:e,uniforms:{color:new a.Color(1,0,0,.5),image:t.image,time:0},source:o({count:t.count,freely:t.freely,direction:t.direction})},translucent:function(){return!0}}),new i(t)}function Po(a,t){const e=a.Color,i=Object.defineProperties,o=a.Event,s=a.createPropertyDescriptor,r=a.Property,n=(u,m)=>u===void 0?m:u,l={};let c=t.materialType||"PolylineFlow"+Date.now()+Math.floor(Math.random()*1e3);function d(u){u=n(u,l),this._definitionChanged=new o,this._color=void 0,this._colorSubscription=void 0,this.color=u.color||e.fromBytes(0,255,255,255),this._duration=void 0,this._durationSubscription=void 0,this.duration=n(u.duration,45)}return i(d.prototype,{isConstant:{get(){return!1}},definitionChanged:{get(){return this._definitionChanged}}}),d.prototype.getType=function(u){return c},d.prototype.getValue=function(u,m){return m||(m={}),m.color=r.getValueOrClonedDefault(this._color,u,a.Color.WHITE,m.color),m.duration=this._duration,m},d.prototype.equals=function(u){return this===u||u instanceof d&&r.equals(this._color,u._color)},i(d.prototype,{color:s("color"),duration:s("duration")}),a.PolylineFlowMaterialProperty=d,a.Material._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new e(1,1,1,1),duration:45},source:(function(){return`uniform vec4 color;
27
+ `,r};return a.Material._materialCache.addMaterial(e,{fabric:{type:e,uniforms:{color:t.color||new a.Color(1,1,1,1),image:t.image,time:0},source:o({count:t.count,freely:t.freely,direction:t.direction})},translucent:function(){return!0}}),new i(t)}function Po(a,t){const e=a.Color,i=Object.defineProperties,o=a.Event,s=a.createPropertyDescriptor,r=a.Property,n=(u,m)=>u===void 0?m:u,l={};let c=t.materialType||"PolylineFlow"+Date.now()+Math.floor(Math.random()*1e3);function d(u){u=n(u,l),this._definitionChanged=new o,this._color=void 0,this._colorSubscription=void 0,this.color=u.color||e.fromBytes(0,255,255,255),this._duration=void 0,this._durationSubscription=void 0,this.duration=n(u.duration,45)}return i(d.prototype,{isConstant:{get(){return!1}},definitionChanged:{get(){return this._definitionChanged}}}),d.prototype.getType=function(u){return c},d.prototype.getValue=function(u,m){return m||(m={}),m.color=r.getValueOrClonedDefault(this._color,u,a.Color.WHITE,m.color),m.duration=this._duration,m},d.prototype.equals=function(u){return this===u||u instanceof d&&r.equals(this._color,u._color)},i(d.prototype,{color:s("color"),duration:s("duration")}),a.PolylineFlowMaterialProperty=d,a.Material._materialCache.addMaterial(c,{fabric:{type:c,uniforms:{color:new e(1,1,1,1),duration:45},source:(function(){return`uniform vec4 color;
28
28
  uniform float duration;
29
29
  czm_material czm_getMaterial(czm_materialInput materialInput){
30
30
  czm_material material = czm_getDefaultMaterial(materialInput);