shaders 2.5.87 → 2.5.88
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/dist/core/{Plasma-LpGeN0eG.js → Plasma-BvaqpPiL.js} +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/registry.js +2 -2
- package/dist/core/{shaderRegistry-O96t1zA9.js → shaderRegistry-Cq1lFKDh.js} +1 -1
- package/dist/core/shaders/Plasma/index.js +1 -1
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/svelte/index.js +1 -1
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as transformColor, o as transformColorSpace, t as colorSpaceOptions } from "./transformations-B5lM6fYX.js";
|
|
2
2
|
import { t as mixColors } from "./colorMixing-BPpDnR5I.js";
|
|
3
3
|
import { t as createAnimatedTime } from "./time-DUqSFWvT.js";
|
|
4
|
-
import { clamp, exp, float, mx_noise_float, pow, screenUV, vec3,
|
|
4
|
+
import { clamp, exp, float, mx_noise_float, pow, screenUV, vec3, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "Plasma",
|
|
7
7
|
category: "Textures",
|
|
@@ -129,7 +129,7 @@ const componentDefinition = {
|
|
|
129
129
|
const contrasted = clamp(pow(mx_noise_float(pos.add(vec3(rx, ry, float(0)).mul(warpAmount))).mul(.5).add(.5), float(5).div(intensity)).sub(.5).mul(uniforms.contrast.uniform).add(.5), 0, 1);
|
|
130
130
|
const balanceShift = uniforms.balance.uniform.div(100).sub(.5);
|
|
131
131
|
const balanced = clamp(contrasted.add(balanceShift), 0, 1);
|
|
132
|
-
return
|
|
132
|
+
return mixColors(uniforms.colorB.uniform, uniforms.colorA.uniform, balanced, uniforms.colorSpace.uniform.value);
|
|
133
133
|
}
|
|
134
134
|
};
|
|
135
135
|
var Plasma_default = componentDefinition;
|
package/dist/core/index.js
CHANGED
|
@@ -61,7 +61,7 @@ import "./Neon-gsfaMvGq.js";
|
|
|
61
61
|
import "./Paper-BVuYd7u4.js";
|
|
62
62
|
import "./Perspective-CqV-lhEE.js";
|
|
63
63
|
import "./Pixelate-DrG7QsBR.js";
|
|
64
|
-
import "./Plasma-
|
|
64
|
+
import "./Plasma-BvaqpPiL.js";
|
|
65
65
|
import "./PolarCoordinates-CiNUC56M.js";
|
|
66
66
|
import "./Polygon-BeqB8MSz.js";
|
|
67
67
|
import "./Posterize-CGEUVRt_.js";
|
|
@@ -97,7 +97,7 @@ import "./VideoTexture-ChFw0jKS.js";
|
|
|
97
97
|
import "./WaveDistortion-BSt0JJbk.js";
|
|
98
98
|
import "./WebcamTexture-CF1nwkNG.js";
|
|
99
99
|
import "./ZoomBlur-CAeswzf5.js";
|
|
100
|
-
import { t as getAllShaders } from "./shaderRegistry-
|
|
100
|
+
import { t as getAllShaders } from "./shaderRegistry-Cq1lFKDh.js";
|
|
101
101
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, Vector2, WebGPURenderer } from "three/webgpu";
|
|
102
102
|
import { WebGLRenderer } from "three";
|
|
103
103
|
import { PI, abs, add, atan, clamp, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sign, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
|
package/dist/core/registry.js
CHANGED
|
@@ -61,7 +61,7 @@ import "./Neon-gsfaMvGq.js";
|
|
|
61
61
|
import "./Paper-BVuYd7u4.js";
|
|
62
62
|
import "./Perspective-CqV-lhEE.js";
|
|
63
63
|
import "./Pixelate-DrG7QsBR.js";
|
|
64
|
-
import "./Plasma-
|
|
64
|
+
import "./Plasma-BvaqpPiL.js";
|
|
65
65
|
import "./PolarCoordinates-CiNUC56M.js";
|
|
66
66
|
import "./Polygon-BeqB8MSz.js";
|
|
67
67
|
import "./Posterize-CGEUVRt_.js";
|
|
@@ -97,5 +97,5 @@ import "./VideoTexture-ChFw0jKS.js";
|
|
|
97
97
|
import "./WaveDistortion-BSt0JJbk.js";
|
|
98
98
|
import "./WebcamTexture-CF1nwkNG.js";
|
|
99
99
|
import "./ZoomBlur-CAeswzf5.js";
|
|
100
|
-
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-
|
|
100
|
+
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-Cq1lFKDh.js";
|
|
101
101
|
export { getAllShaders, getShaderByName, getShaderCategories, getShadersByCategory, shaderRegistry };
|
|
@@ -55,7 +55,7 @@ import { n as componentDefinition$53 } from "./Neon-gsfaMvGq.js";
|
|
|
55
55
|
import { n as componentDefinition$54 } from "./Paper-BVuYd7u4.js";
|
|
56
56
|
import { n as componentDefinition$55 } from "./Perspective-CqV-lhEE.js";
|
|
57
57
|
import { n as componentDefinition$56 } from "./Pixelate-DrG7QsBR.js";
|
|
58
|
-
import { n as componentDefinition$57 } from "./Plasma-
|
|
58
|
+
import { n as componentDefinition$57 } from "./Plasma-BvaqpPiL.js";
|
|
59
59
|
import { n as componentDefinition$58 } from "./PolarCoordinates-CiNUC56M.js";
|
|
60
60
|
import { n as componentDefinition$59 } from "./Polygon-BeqB8MSz.js";
|
|
61
61
|
import { n as componentDefinition$60 } from "./Posterize-CGEUVRt_.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-B5lM6fYX.js";
|
|
2
2
|
import "../../colorMixing-BPpDnR5I.js";
|
|
3
3
|
import "../../time-DUqSFWvT.js";
|
|
4
|
-
import { n as componentDefinition, t as Plasma_default } from "../../Plasma-
|
|
4
|
+
import { n as componentDefinition, t as Plasma_default } from "../../Plasma-BvaqpPiL.js";
|
|
5
5
|
export { componentDefinition, Plasma_default as default };
|
package/dist/js/createShader.js
CHANGED
|
@@ -41,7 +41,7 @@ async function createShader(canvas, preset, options) {
|
|
|
41
41
|
if (isExternalUser() && shouldCollectTelemetry(options?.disableTelemetry || false, options?.isPreview || false)) {
|
|
42
42
|
const checkRendering = () => {
|
|
43
43
|
if (renderer.getPerformanceStats().fps > 0) {
|
|
44
|
-
telemetryCollector = startTelemetry(renderer, "2.5.
|
|
44
|
+
telemetryCollector = startTelemetry(renderer, "2.5.88", options?.disableTelemetry || false, false);
|
|
45
45
|
if (telemetryCollector) telemetryCollector.start();
|
|
46
46
|
telemetryStartTimeout = null;
|
|
47
47
|
} else telemetryStartTimeout = setTimeout(checkRendering, 500);
|
package/dist/react/Shader.js
CHANGED
|
@@ -89,7 +89,7 @@ const Shader = ({ children, disableTelemetry = false, colorSpace = "p3-linear",
|
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
if (rendererRef.current.getPerformanceStats().fps > 0) {
|
|
92
|
-
telemetryCollectorRef.current = startTelemetry(rendererRef.current, "2.5.
|
|
92
|
+
telemetryCollectorRef.current = startTelemetry(rendererRef.current, "2.5.88", disableTelemetry, isPreview);
|
|
93
93
|
if (telemetryCollectorRef.current) telemetryCollectorRef.current.start();
|
|
94
94
|
telemetryStartTimeoutRef.current = null;
|
|
95
95
|
} else telemetryStartTimeoutRef.current = window.setTimeout(checkRendering, 500);
|
|
@@ -67,7 +67,7 @@ function Shader(allProps) {
|
|
|
67
67
|
const checkRendering = () => {
|
|
68
68
|
const stats = rendererInstance.getPerformanceStats();
|
|
69
69
|
if (stats.fps > 0) {
|
|
70
|
-
const version = "2.5.
|
|
70
|
+
const version = "2.5.88";
|
|
71
71
|
telemetryCollector = startTelemetry(rendererInstance, version, props.disableTelemetry, props.isPreview);
|
|
72
72
|
if (telemetryCollector) {
|
|
73
73
|
telemetryCollector.start();
|
package/dist/svelte/index.js
CHANGED
|
@@ -13481,7 +13481,7 @@ function Shader($$anchor, $$props) {
|
|
|
13481
13481
|
const checkRendering = () => {
|
|
13482
13482
|
if (!rendererInstance) return;
|
|
13483
13483
|
if (rendererInstance.getPerformanceStats().fps > 0) {
|
|
13484
|
-
telemetryCollector = startTelemetry(rendererInstance, "2.5.
|
|
13484
|
+
telemetryCollector = startTelemetry(rendererInstance, "2.5.88", disableTelemetry(), isPreview());
|
|
13485
13485
|
if (telemetryCollector) telemetryCollector.start();
|
|
13486
13486
|
telemetryStartTimeout = null;
|
|
13487
13487
|
} else telemetryStartTimeout = window.setTimeout(checkRendering, 500);
|
|
@@ -60,7 +60,7 @@ var Shader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineC
|
|
|
60
60
|
const startTelemetryWhenReady = () => {
|
|
61
61
|
const checkRendering = () => {
|
|
62
62
|
if (rendererInstance.value.getPerformanceStats().fps > 0) {
|
|
63
|
-
telemetryCollector = startTelemetry(rendererInstance.value, "2.5.
|
|
63
|
+
telemetryCollector = startTelemetry(rendererInstance.value, "2.5.88", props.disableTelemetry, props.isPreview);
|
|
64
64
|
if (telemetryCollector) telemetryCollector.start();
|
|
65
65
|
telemetryStartTimeout = null;
|
|
66
66
|
} else telemetryStartTimeout = setTimeout(checkRendering, 500);
|