@qispace/vue3-player 0.4.53 → 0.4.54

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.
@@ -25236,19 +25236,21 @@ vec4 texture2D_nearest(sampler2D tex, vec2 texCoords) {
25236
25236
  return baseColor;
25237
25237
  }
25238
25238
 
25239
- //The markers channels has this info:
25240
- // R: Distance from center
25241
- // G: Angle
25242
- // B: 1
25243
25239
  vec3 markerFilterNew(vec4 baseColor, vec4 layerColor) {
25244
25240
  float cameraDistance = layerColor.a;
25245
25241
  float wave=sin((cameraDistance/2.0-time)*3.0)/2.0+0.5;
25246
- float alpha=wave;
25247
-
25248
- float s=layerColor.r-0.5;
25249
- vec3 col=vec3(baseColor.r+s,baseColor.g+s,baseColor.b+s);
25242
+
25243
+ bool helperTint = layerColor.g > layerColor.r * 1.15
25244
+ && layerColor.g > layerColor.b
25245
+ && layerColor.g > 0.35;
25246
+ if (helperTint) {
25247
+ return mix(baseColor.rgb, layerColor.rgb, wave);
25248
+ }
25250
25249
 
25251
- return mix(baseColor.rgb,col,alpha);
25250
+ float luminance = max(max(layerColor.r, layerColor.g), layerColor.b);
25251
+ float s = luminance - 0.5;
25252
+ vec3 col = vec3(baseColor.r+s, baseColor.g+s, baseColor.b+s);
25253
+ return mix(baseColor.rgb, col, wave);
25252
25254
  }
25253
25255
 
25254
25256
 
@@ -3855,19 +3855,21 @@ vec4 texture2D_nearest(sampler2D tex, vec2 texCoords) {
3855
3855
  return baseColor;
3856
3856
  }
3857
3857
 
3858
- //The markers channels has this info:
3859
- // R: Distance from center
3860
- // G: Angle
3861
- // B: 1
3862
3858
  vec3 markerFilterNew(vec4 baseColor, vec4 layerColor) {
3863
3859
  float cameraDistance = layerColor.a;
3864
3860
  float wave=sin((cameraDistance/2.0-time)*3.0)/2.0+0.5;
3865
- float alpha=wave;
3866
-
3867
- float s=layerColor.r-0.5;
3868
- vec3 col=vec3(baseColor.r+s,baseColor.g+s,baseColor.b+s);
3861
+
3862
+ bool helperTint = layerColor.g > layerColor.r * 1.15
3863
+ && layerColor.g > layerColor.b
3864
+ && layerColor.g > 0.35;
3865
+ if (helperTint) {
3866
+ return mix(baseColor.rgb, layerColor.rgb, wave);
3867
+ }
3869
3868
 
3870
- return mix(baseColor.rgb,col,alpha);
3869
+ float luminance = max(max(layerColor.r, layerColor.g), layerColor.b);
3870
+ float s = luminance - 0.5;
3871
+ vec3 col = vec3(baseColor.r+s, baseColor.g+s, baseColor.b+s);
3872
+ return mix(baseColor.rgb, col, wave);
3871
3873
  }
3872
3874
 
3873
3875
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qispace/vue3-player",
3
- "version": "0.4.53",
3
+ "version": "0.4.54",
4
4
  "type": "module",
5
5
  "config": {
6
6
  "tag-version-prefix": "v"
@@ -44,7 +44,7 @@
44
44
  "release:patch": "git pull && npm version patch && git push && git push --tags"
45
45
  },
46
46
  "peerDependencies": {
47
- "@qispace/player-core": "^1.0.106",
47
+ "@qispace/player-core": "^1.0.107",
48
48
  "@qispace/visuado-player-core": "^0.0.17",
49
49
  "axios": "^1.6.7",
50
50
  "three": "^0.163.0",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@mdi/font": "^7.4.47",
56
- "@qispace/player-core": "^1.0.106",
56
+ "@qispace/player-core": "^1.0.107",
57
57
  "@qispace/visuado-player-core": "^0.0.17",
58
58
  "@types/node": "^20.11.19",
59
59
  "@vitejs/plugin-vue": "^6.0.0",