shaders 2.3.65 → 2.3.66

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.
@@ -1,7 +1,7 @@
1
1
  import { t as applyEdgeHandling } from "./edges-Bd7GP4s2.js";
2
2
  import { c as transformEdges, l as transformPosition } from "./transformations-B5lM6fYX.js";
3
3
  import { t as unpremultiplyAlpha } from "./alpha-Byel9eTg.js";
4
- import { atan2, convertToTexture, cos, float, length, mod, screenUV, sin, vec2, vec4, viewportSize } from "three/tsl";
4
+ import { atan, convertToTexture, cos, float, length, mod, screenUV, sin, vec2, vec4, viewportSize } from "three/tsl";
5
5
  const componentDefinition = {
6
6
  name: "Kaleidoscope",
7
7
  category: "Distortions",
@@ -86,7 +86,7 @@ const componentDefinition = {
86
86
  const centerPos = vec2(uniforms.center.uniform.x.mul(aspect), uniforms.center.uniform.y.oneMinus());
87
87
  const delta = aspectCorrectedUV.sub(centerPos);
88
88
  const radius = length(delta);
89
- const currentAngle = atan2(delta.y, delta.x);
89
+ const currentAngle = atan(delta.y, delta.x);
90
90
  const rotationRad = uniforms.angle.uniform.mul(Math.PI / 180);
91
91
  const rotatedAngle = currentAngle.add(rotationRad);
92
92
  const segmentAngle = float(Math.PI * 2).div(uniforms.segments.uniform);
@@ -1,6 +1,6 @@
1
1
  import { l as transformPosition } from "./transformations-B5lM6fYX.js";
2
2
  import { t as createAnimatedTime } from "./time-BZqyVJXt.js";
3
- import { Fn, abs, atan2, clamp, cos, dot, float, max, mix, pow, screenUV, sin, smoothstep, vec2, vec3, vec4, viewportSize } from "three/tsl";
3
+ import { Fn, abs, atan, clamp, cos, dot, float, max, mix, pow, screenUV, sin, smoothstep, vec2, vec3, vec4, viewportSize } from "three/tsl";
4
4
  var spectralColor = Fn(([t]) => {
5
5
  const TAU = float(6.2831853);
6
6
  return vec3(cos(TAU.mul(t)).mul(.5).add(.5), cos(TAU.mul(t.sub(.333))).mul(.5).add(.5), cos(TAU.mul(t.sub(.666))).mul(.5).add(.5));
@@ -339,10 +339,10 @@ const componentDefinition = {
339
339
  const rHalo = smoothstep(float(0), haloWidth, abs(antiLightDist.sub(uHaloRad.add(haloChromaSpread)))).oneMinus();
340
340
  const gHalo = smoothstep(float(0), haloWidth, abs(antiLightDist.sub(uHaloRad))).oneMinus();
341
341
  const bHalo = smoothstep(float(0), haloWidth, abs(antiLightDist.sub(uHaloRad.sub(haloChromaSpread)))).oneMinus();
342
- const haloAngVar = sin(atan2(toAntiLight.y, toAntiLight.x).mul(3).add(t.mul(.5))).mul(.12).add(.88);
342
+ const haloAngVar = sin(atan(toAntiLight.y, toAntiLight.x).mul(3).add(t.mul(.5))).mul(.12).add(.88);
343
343
  const haloColor = vec3(rHalo, gHalo, bHalo).mul(uHaloInt).mul(haloAngVar);
344
- const lightAngle = atan2(toLightAR.y, toLightAR.x);
345
- const rotation = atan2(flareAxis.y, flareAxis.x.mul(aspect)).mul(.5).add(t.mul(.06));
344
+ const lightAngle = atan(toLightAR.y, toLightAR.x);
345
+ const rotation = atan(flareAxis.y, flareAxis.x.mul(aspect)).mul(.5).add(t.mul(.06));
346
346
  const spikeAngle = lightAngle.add(rotation);
347
347
  const primarySpikes = pow(abs(cos(spikeAngle.mul(uStarburstPts.div(2)))), float(3.5));
348
348
  const secondarySpikes = pow(abs(cos(spikeAngle.add(.25).mul(uStarburstPts.div(2)))), float(7)).mul(.4);
@@ -40,8 +40,8 @@ import { n as componentDefinition$33 } from "./Halftone-YTJAc3Ie.js";
40
40
  import { n as componentDefinition$34 } from "./HueShift-Bf2V6FVR.js";
41
41
  import { n as componentDefinition$35 } from "./ImageTexture-6e1Gz4IG.js";
42
42
  import { n as componentDefinition$36 } from "./Invert-c6RNEzsq.js";
43
- import { n as componentDefinition$37 } from "./Kaleidoscope-BDTIWTFC.js";
44
- import { n as componentDefinition$38 } from "./LensFlare-CxyJBEvr.js";
43
+ import { n as componentDefinition$37 } from "./Kaleidoscope-B1mL-Yj3.js";
44
+ import { n as componentDefinition$38 } from "./LensFlare-sRuR8OkY.js";
45
45
  import { n as componentDefinition$39 } from "./LinearBlur-BtsleV0J.js";
46
46
  import { n as componentDefinition$40 } from "./LinearGradient-BP91wtXm.js";
47
47
  import { n as componentDefinition$41 } from "./Liquify-2u2lkBhB.js";
@@ -1,5 +1,5 @@
1
1
  import "../../edges-Bd7GP4s2.js";
2
2
  import "../../transformations-B5lM6fYX.js";
3
3
  import "../../alpha-Byel9eTg.js";
4
- import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-BDTIWTFC.js";
4
+ import { n as componentDefinition, t as Kaleidoscope_default } from "../../Kaleidoscope-B1mL-Yj3.js";
5
5
  export { componentDefinition, Kaleidoscope_default as default };
@@ -1,4 +1,4 @@
1
1
  import "../../transformations-B5lM6fYX.js";
2
2
  import "../../time-BZqyVJXt.js";
3
- import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-CxyJBEvr.js";
3
+ import { n as componentDefinition, t as LensFlare_default } from "../../LensFlare-sRuR8OkY.js";
4
4
  export { componentDefinition, LensFlare_default as default };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shaders",
3
- "version": "2.3.65",
3
+ "version": "2.3.66",
4
4
  "description": "Shader magic for modern frontends",
5
5
  "author": "Shader Effects Inc.",
6
6
  "homepage": "https://shaders.com/",
@@ -705,7 +705,7 @@
705
705
  "typecheck": "tsc --noEmit"
706
706
  },
707
707
  "dependencies": {
708
- "three": "^0.182.0"
708
+ "three": "^0.183.0"
709
709
  },
710
710
  "devDependencies": {
711
711
  "@types/fs-extra": "^11.0.4",