shaders 2.5.129 → 2.5.130
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/{Blur-LkvIPGj0.js → Blur-1GcG1L1y.js} +1 -1
- package/dist/core/{ChannelBlur-WTXL0B7t.js → ChannelBlur-CxlVaYGM.js} +1 -1
- package/dist/core/{Glass-Cy1wvfuu.js → Glass-D8DayF1P.js} +1 -1
- package/dist/core/{Glow-CJ7MTzc4.js → Glow-chsUpCyj.js} +21 -6
- package/dist/core/{ProgressiveBlur-jvN5Adf4.js → ProgressiveBlur-By_PgPtK.js} +1 -1
- package/dist/core/{ReflectivePlane-CGXUsPVJ.js → ReflectivePlane-VjZ1E5B0.js} +1 -1
- package/dist/core/{TiltShift-e-1ia_HN.js → TiltShift-vG90NlLr.js} +1 -1
- package/dist/core/{computeBlur-DNlXBk7b.js → computeBlur-oxyhoztH.js} +7 -4
- package/dist/core/index.js +9 -9
- package/dist/core/registry.js +9 -9
- package/dist/core/{shaderRegistry-RdJlP7Pq.js → shaderRegistry-BVFBmRN3.js} +7 -7
- package/dist/core/shaders/Blur/index.js +2 -2
- package/dist/core/shaders/ChannelBlur/index.js +2 -2
- package/dist/core/shaders/Glass/index.js +2 -2
- package/dist/core/shaders/Glow/index.d.ts.map +1 -1
- package/dist/core/shaders/Glow/index.js +2 -2
- package/dist/core/shaders/ProgressiveBlur/index.js +2 -2
- package/dist/core/shaders/ReflectivePlane/index.js +2 -2
- package/dist/core/shaders/TiltShift/index.js +2 -2
- package/dist/core/utilities/computeBlur.d.ts +3 -1
- package/dist/core/utilities/computeBlur.d.ts.map +1 -1
- package/dist/js/bundle.js +21 -21
- package/dist/js/createShader.js +1 -1
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +17 -17
- 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,5 +1,5 @@
|
|
|
1
1
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
2
|
-
import { i as createVariableGaussianBlurCompute, r as createGaussianBlurCompute } from "./computeBlur-
|
|
2
|
+
import { i as createVariableGaussianBlurCompute, r as createGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
3
3
|
import { Fn, If, clamp, convertToTexture, dot, float, instanceIndex, int, mix, pow, screenUV, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|
|
5
5
|
name: "Blur",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
2
|
-
import { r as createGaussianBlurCompute } from "./computeBlur-
|
|
2
|
+
import { r as createGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
3
3
|
import { Fn, convertToTexture, float, mix, screenUV, texture, vec2, vec4, viewportSize } from "three/tsl";
|
|
4
4
|
const componentDefinition = {
|
|
5
5
|
name: "ChannelBlur",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as transformColor, l as transformPosition } from "./transformations-CJcUeZIC.js";
|
|
2
|
-
import { r as createGaussianBlurCompute } from "./computeBlur-
|
|
2
|
+
import { r as createGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
3
3
|
import { n as createAnalyticSdfSampler, r as createSvgSdfSampler } from "./sdf-D_EAGXhN.js";
|
|
4
4
|
import { Fn, If, clamp, convertToTexture, dot, exp2, float, max, mix, pow, screenUV, smoothstep, sqrt, texture, uniform, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
var GOLDEN_ANGLE = 2.3999632297286535;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
2
|
-
import { i as createVariableGaussianBlurCompute, n as DEFAULT_COMPUTE_WIDTH, t as DEFAULT_COMPUTE_HEIGHT } from "./computeBlur-
|
|
2
|
+
import { i as createVariableGaussianBlurCompute, n as DEFAULT_COMPUTE_WIDTH, t as DEFAULT_COMPUTE_HEIGHT } from "./computeBlur-oxyhoztH.js";
|
|
3
3
|
import { StorageTexture } from "three/webgpu";
|
|
4
4
|
import { FloatType } from "three";
|
|
5
5
|
import { Fn, If, clamp, convertToTexture, dot, float, instanceIndex, int, max, mix, pow, screenUV, storageTexture, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
@@ -69,7 +69,7 @@ const componentDefinition = {
|
|
|
69
69
|
onCleanup(() => {
|
|
70
70
|
brightTex.dispose();
|
|
71
71
|
});
|
|
72
|
-
const { computeNodes: blurNodes, outputTexture: blurredTex, blurMapWriteNode } = createVariableGaussianBlurCompute(brightReadNode, computeWidth, computeHeight, onCleanup, void 0, computeWidth, computeHeight);
|
|
72
|
+
const { computeNodes: blurNodes, outputTexture: blurredTex, blurMapWriteNode } = createVariableGaussianBlurCompute(brightReadNode, computeWidth, computeHeight, onCleanup, void 0, computeWidth, computeHeight, { jitterTaps: true });
|
|
73
73
|
const inputWidthU = uniform(texWidth);
|
|
74
74
|
const inputHeightU = uniform(texHeight);
|
|
75
75
|
const cw = uint(computeWidth);
|
|
@@ -84,10 +84,23 @@ const componentDefinition = {
|
|
|
84
84
|
const v = cy.toFloat().add(float(.5)).div(float(computeHeight));
|
|
85
85
|
const srcX = u.mul(inputWidthU).round().toInt().clamp(int(0), int(inputWidthU.sub(1))).toUint();
|
|
86
86
|
const srcY = v.mul(inputHeightU).round().toInt().clamp(int(0), int(inputHeightU.sub(1))).toUint();
|
|
87
|
-
const
|
|
87
|
+
const inputWm1 = int(inputWidthU.sub(1));
|
|
88
|
+
const inputHm1 = int(inputHeightU.sub(1));
|
|
89
|
+
const sample = vec4(0).toVar();
|
|
90
|
+
for (let ty = 0; ty < 4; ty++) for (let tx = 0; tx < 4; tx++) {
|
|
91
|
+
const su = cx.toFloat().add(float((tx + .5) / 4)).div(float(computeWidth));
|
|
92
|
+
const sv = cy.toFloat().add(float((ty + .5) / 4)).div(float(computeHeight));
|
|
93
|
+
const sx = su.mul(inputWidthU).toInt().clamp(int(0), inputWm1).toUint();
|
|
94
|
+
const sy = sv.mul(inputHeightU).toInt().clamp(int(0), inputHm1).toUint();
|
|
95
|
+
sample.assign(sample.add(textureLoad(childTexture, uvec2(sx, sy), int(0))));
|
|
96
|
+
}
|
|
97
|
+
sample.assign(sample.mul(float(1 / 16)));
|
|
98
|
+
const threshold = uniforms.threshold.uniform;
|
|
99
|
+
const knee = threshold.mul(float(.5)).add(float(1e-4));
|
|
88
100
|
const lum = dot(sample.rgb, vec3(.2126, .7152, .0722));
|
|
89
|
-
const
|
|
90
|
-
|
|
101
|
+
const soft = clamp(lum.sub(threshold).add(knee), float(0), knee.mul(float(2)));
|
|
102
|
+
const mask = max(soft.mul(soft).div(knee.mul(float(4))), lum.sub(threshold)).div(max(lum, float(1e-4)));
|
|
103
|
+
textureStore(brightWriteNode, uvec2(cx, cy), vec4(sample.rgb.mul(mask), sample.a.mul(mask))).toWriteOnly();
|
|
91
104
|
let radius;
|
|
92
105
|
if (sizeMapInfo) {
|
|
93
106
|
const { sourceTexture, channel, inputMin, inputMax, outputMin, outputMax, curve } = sizeMapInfo;
|
|
@@ -125,7 +138,9 @@ const componentDefinition = {
|
|
|
125
138
|
const bloom = texture(computeOutputs.blurredTexture).sample(screenUV);
|
|
126
139
|
const sizePin = uniforms.size.uniform.mul(float(0));
|
|
127
140
|
const intensity$1 = uniforms.intensity.uniform;
|
|
128
|
-
|
|
141
|
+
const finalColor = original.rgb.add(bloom.rgb.mul(intensity$1)).add(sizePin);
|
|
142
|
+
const glowAlpha = clamp(bloom.a.mul(intensity$1), float(0), float(1));
|
|
143
|
+
return unpremultiplyAlpha(vec4(finalColor, original.a.add(glowAlpha.mul(original.a.oneMinus()))));
|
|
129
144
|
}
|
|
130
145
|
const childTexture = convertToTexture(childNode);
|
|
131
146
|
onCleanup(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as transformPosition, r as transformAngle } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
3
|
-
import { i as createVariableGaussianBlurCompute } from "./computeBlur-
|
|
3
|
+
import { i as createVariableGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
4
4
|
import { Fn, If, clamp, convertToTexture, cos, dot, float, instanceIndex, int, max, mix, pow, radians, screenUV, sin, smoothstep, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "ProgressiveBlur",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as applyEdgeHandling } from "./edges-CX_lJB9R.js";
|
|
2
2
|
import { c as transformEdges } from "./transformations-CJcUeZIC.js";
|
|
3
3
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
4
|
-
import { i as createVariableGaussianBlurCompute } from "./computeBlur-
|
|
4
|
+
import { i as createVariableGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
5
5
|
import { Fn, If, convertToTexture, float, instanceIndex, mix, screenUV, smoothstep, step, texture, textureStore, uint, uniform, uvec2, vec2, vec4, viewportSize } from "three/tsl";
|
|
6
6
|
var HALF_KERNEL = 30;
|
|
7
7
|
var BLUR_TO_RADIUS_PX = 12;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { l as transformPosition, r as transformAngle } from "./transformations-CJcUeZIC.js";
|
|
2
2
|
import { t as unpremultiplyAlpha } from "./alpha-C4ptedXe.js";
|
|
3
|
-
import { i as createVariableGaussianBlurCompute } from "./computeBlur-
|
|
3
|
+
import { i as createVariableGaussianBlurCompute } from "./computeBlur-oxyhoztH.js";
|
|
4
4
|
import { Fn, If, abs, clamp, convertToTexture, cos, dot, float, instanceIndex, int, mix, pow, radians, screenUV, sin, smoothstep, texture, textureLoad, textureStore, uint, uniform, uvec2, vec2, vec3, vec4, viewportSize } from "three/tsl";
|
|
5
5
|
const componentDefinition = {
|
|
6
6
|
name: "TiltShift",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { StorageTexture } from "three/webgpu";
|
|
2
2
|
import { FloatType, HalfFloatType, LinearFilter as LinearFilter$1 } from "three";
|
|
3
|
-
import { Fn, If, float, instanceIndex, int, storageTexture, textureLoad, textureStore, uint, uniform, uniformArray, uvec2, vec4 } from "three/tsl";
|
|
3
|
+
import { Fn, If, float, fract, instanceIndex, int, storageTexture, textureLoad, textureStore, uint, uniform, uniformArray, uvec2, vec4 } from "three/tsl";
|
|
4
4
|
var DEFAULT_HALF_KERNEL = 24;
|
|
5
5
|
const DEFAULT_COMPUTE_WIDTH = 1024;
|
|
6
6
|
const DEFAULT_COMPUTE_HEIGHT = 640;
|
|
@@ -120,7 +120,8 @@ function createGaussianBlurCompute(inputTexture, inputWidth, inputHeight, onClea
|
|
|
120
120
|
}
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
|
-
function createVariableGaussianBlurCompute(inputTexture, inputWidth, inputHeight, onCleanup, halfKernel = DEFAULT_HALF_KERNEL, computeWidth = DEFAULT_COMPUTE_WIDTH, computeHeight = 640) {
|
|
123
|
+
function createVariableGaussianBlurCompute(inputTexture, inputWidth, inputHeight, onCleanup, halfKernel = DEFAULT_HALF_KERNEL, computeWidth = DEFAULT_COMPUTE_WIDTH, computeHeight = 640, options) {
|
|
124
|
+
const jitterTaps = options?.jitterTaps === true;
|
|
124
125
|
const HALF_KERNEL = halfKernel;
|
|
125
126
|
const FIXED_WEIGHTS = buildFixedWeights(HALF_KERNEL);
|
|
126
127
|
const blurMapTex = new StorageTexture(computeWidth, computeHeight);
|
|
@@ -168,8 +169,9 @@ function createVariableGaussianBlurCompute(inputTexture, inputWidth, inputHeight
|
|
|
168
169
|
textureStore(intermediateWriteNode, uvec2(cx, cy), texel).toWriteOnly();
|
|
169
170
|
}).Else(() => {
|
|
170
171
|
const sum = vec4(0).toVar();
|
|
172
|
+
const jitterH = jitterTaps ? fract(float(52.9829189).mul(fract(cx.toFloat().mul(float(.06711056)).add(cy.toFloat().mul(float(.00583715)))))).sub(float(.5)) : float(0);
|
|
171
173
|
for (let i = -HALF_KERNEL; i <= HALF_KERNEL; i++) {
|
|
172
|
-
const offset = float(i).mul(invHalf).mul(blurRadius);
|
|
174
|
+
const offset = float(i).add(jitterH).mul(invHalf).mul(blurRadius);
|
|
173
175
|
const texel = textureLoad(inputTexture, uvec2(inputCxF.add(offset).round().toInt().clamp(int(0), inputWm1).toUint(), inputCyI.toUint()), int(0));
|
|
174
176
|
sum.assign(sum.add(texel.mul(weights.element(int(i + HALF_KERNEL)))));
|
|
175
177
|
}
|
|
@@ -189,8 +191,9 @@ function createVariableGaussianBlurCompute(inputTexture, inputWidth, inputHeight
|
|
|
189
191
|
const sum = vec4(0).toVar();
|
|
190
192
|
const yi = cy.toInt();
|
|
191
193
|
const radiusComputeY = blurRadius.div(scaleYU);
|
|
194
|
+
const jitterV = jitterTaps ? fract(float(52.9829189).mul(fract(cx.toFloat().mul(float(.00583715)).add(cy.toFloat().mul(float(.06711056)))))).sub(float(.5)) : float(0);
|
|
192
195
|
for (let i = -HALF_KERNEL; i <= HALF_KERNEL; i++) {
|
|
193
|
-
const offset = float(i).mul(invHalf).mul(radiusComputeY);
|
|
196
|
+
const offset = float(i).add(jitterV).mul(invHalf).mul(radiusComputeY);
|
|
194
197
|
const texel = textureLoad(intermediateReadNode, uvec2(cx, yi.add(offset.round().toInt()).clamp(int(0), computeHm1).toUint()), int(0));
|
|
195
198
|
sum.assign(sum.add(texel.mul(weights.element(int(i + HALF_KERNEL)))));
|
|
196
199
|
}
|
package/dist/core/index.js
CHANGED
|
@@ -9,12 +9,12 @@ import "./Aurora-D5Pjk4ve.js";
|
|
|
9
9
|
import "./BarShift-2XBhva1A.js";
|
|
10
10
|
import "./Beam-B3BX08lR.js";
|
|
11
11
|
import "./Blob-BT50tDXE.js";
|
|
12
|
-
import "./computeBlur-
|
|
13
|
-
import "./Blur-
|
|
12
|
+
import "./computeBlur-oxyhoztH.js";
|
|
13
|
+
import "./Blur-1GcG1L1y.js";
|
|
14
14
|
import "./BrickPattern-BfTsjp4I.js";
|
|
15
15
|
import "./BrightnessContrast-GppIqtkO.js";
|
|
16
16
|
import "./Bulge-DMOATSEs.js";
|
|
17
|
-
import "./ChannelBlur-
|
|
17
|
+
import "./ChannelBlur-CxlVaYGM.js";
|
|
18
18
|
import "./Checkerboard-BVBGTvd-.js";
|
|
19
19
|
import "./Chevron-BKZjAXR_.js";
|
|
20
20
|
import "./ChromaFlow-C0guw_LP.js";
|
|
@@ -51,10 +51,10 @@ import "./FlutedGlass-BJtMfV2c.js";
|
|
|
51
51
|
import "./Fog-BQuVDReH.js";
|
|
52
52
|
import "./Form3D-DOek31CJ.js";
|
|
53
53
|
import "./FractalNoise-Dyhbvx9a.js";
|
|
54
|
-
import "./Glass-
|
|
54
|
+
import "./Glass-D8DayF1P.js";
|
|
55
55
|
import "./GlassTiles-Bb3cuOkr.js";
|
|
56
56
|
import "./Glitch-zqdbCc2E.js";
|
|
57
|
-
import "./Glow-
|
|
57
|
+
import "./Glow-chsUpCyj.js";
|
|
58
58
|
import "./Godrays-DdSLZtBs.js";
|
|
59
59
|
import "./Grayscale-BC40hfXH.js";
|
|
60
60
|
import "./Grid-Lc4S0Hmp.js";
|
|
@@ -81,10 +81,10 @@ import "./Plasma-M--gLd1Q.js";
|
|
|
81
81
|
import "./PolarCoordinates-C42rlD2q.js";
|
|
82
82
|
import "./Polygon-CKqH0ApY.js";
|
|
83
83
|
import "./Posterize-B6ZhRkH2.js";
|
|
84
|
-
import "./ProgressiveBlur-
|
|
84
|
+
import "./ProgressiveBlur-By_PgPtK.js";
|
|
85
85
|
import "./RadialGradient-SHxJ9ZNF.js";
|
|
86
86
|
import "./RectangularCoordinates-Dw6Xr9uV.js";
|
|
87
|
-
import "./ReflectivePlane-
|
|
87
|
+
import "./ReflectivePlane-VjZ1E5B0.js";
|
|
88
88
|
import "./Ring-V4sEHwwm.js";
|
|
89
89
|
import "./Ripples-DC1y3YuP.js";
|
|
90
90
|
import "./RoundedRect-JY2z6YEH.js";
|
|
@@ -107,7 +107,7 @@ import "./StudioBackground-CWSHq6vE.js";
|
|
|
107
107
|
import "./SunBurst-CskZwXc3.js";
|
|
108
108
|
import "./Swirl-CyGfVZ8n.js";
|
|
109
109
|
import "./ThinFilm-CUsi8eSg.js";
|
|
110
|
-
import "./TiltShift-
|
|
110
|
+
import "./TiltShift-vG90NlLr.js";
|
|
111
111
|
import "./Tint-R7y5CJ4U.js";
|
|
112
112
|
import "./Trapezoid-BXzH--z9.js";
|
|
113
113
|
import "./Tritone-CF4Oj1sl.js";
|
|
@@ -125,7 +125,7 @@ import "./Weave-CFmLkEaq.js";
|
|
|
125
125
|
import "./WebcamTexture-DlS4MCDm.js";
|
|
126
126
|
import "./WorleyNoise-CEZiaVAN.js";
|
|
127
127
|
import "./ZoomBlur-DTVSwIvc.js";
|
|
128
|
-
import { t as getAllShaders } from "./shaderRegistry-
|
|
128
|
+
import { t as getAllShaders } from "./shaderRegistry-BVFBmRN3.js";
|
|
129
129
|
import { ACESFilmicToneMapping, AgXToneMapping, CineonToneMapping, Material, Mesh, MeshBasicNodeMaterial, NeutralToneMapping, NoToneMapping, OrthographicCamera, PlaneGeometry, ReinhardToneMapping, SRGBColorSpace, Scene, Vector2, WebGPURenderer } from "three/webgpu";
|
|
130
130
|
import { WebGLRenderer } from "three";
|
|
131
131
|
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
|
@@ -9,12 +9,12 @@ import "./Aurora-D5Pjk4ve.js";
|
|
|
9
9
|
import "./BarShift-2XBhva1A.js";
|
|
10
10
|
import "./Beam-B3BX08lR.js";
|
|
11
11
|
import "./Blob-BT50tDXE.js";
|
|
12
|
-
import "./computeBlur-
|
|
13
|
-
import "./Blur-
|
|
12
|
+
import "./computeBlur-oxyhoztH.js";
|
|
13
|
+
import "./Blur-1GcG1L1y.js";
|
|
14
14
|
import "./BrickPattern-BfTsjp4I.js";
|
|
15
15
|
import "./BrightnessContrast-GppIqtkO.js";
|
|
16
16
|
import "./Bulge-DMOATSEs.js";
|
|
17
|
-
import "./ChannelBlur-
|
|
17
|
+
import "./ChannelBlur-CxlVaYGM.js";
|
|
18
18
|
import "./Checkerboard-BVBGTvd-.js";
|
|
19
19
|
import "./Chevron-BKZjAXR_.js";
|
|
20
20
|
import "./ChromaFlow-C0guw_LP.js";
|
|
@@ -51,10 +51,10 @@ import "./FlutedGlass-BJtMfV2c.js";
|
|
|
51
51
|
import "./Fog-BQuVDReH.js";
|
|
52
52
|
import "./Form3D-DOek31CJ.js";
|
|
53
53
|
import "./FractalNoise-Dyhbvx9a.js";
|
|
54
|
-
import "./Glass-
|
|
54
|
+
import "./Glass-D8DayF1P.js";
|
|
55
55
|
import "./GlassTiles-Bb3cuOkr.js";
|
|
56
56
|
import "./Glitch-zqdbCc2E.js";
|
|
57
|
-
import "./Glow-
|
|
57
|
+
import "./Glow-chsUpCyj.js";
|
|
58
58
|
import "./Godrays-DdSLZtBs.js";
|
|
59
59
|
import "./Grayscale-BC40hfXH.js";
|
|
60
60
|
import "./Grid-Lc4S0Hmp.js";
|
|
@@ -81,10 +81,10 @@ import "./Plasma-M--gLd1Q.js";
|
|
|
81
81
|
import "./PolarCoordinates-C42rlD2q.js";
|
|
82
82
|
import "./Polygon-CKqH0ApY.js";
|
|
83
83
|
import "./Posterize-B6ZhRkH2.js";
|
|
84
|
-
import "./ProgressiveBlur-
|
|
84
|
+
import "./ProgressiveBlur-By_PgPtK.js";
|
|
85
85
|
import "./RadialGradient-SHxJ9ZNF.js";
|
|
86
86
|
import "./RectangularCoordinates-Dw6Xr9uV.js";
|
|
87
|
-
import "./ReflectivePlane-
|
|
87
|
+
import "./ReflectivePlane-VjZ1E5B0.js";
|
|
88
88
|
import "./Ring-V4sEHwwm.js";
|
|
89
89
|
import "./Ripples-DC1y3YuP.js";
|
|
90
90
|
import "./RoundedRect-JY2z6YEH.js";
|
|
@@ -107,7 +107,7 @@ import "./StudioBackground-CWSHq6vE.js";
|
|
|
107
107
|
import "./SunBurst-CskZwXc3.js";
|
|
108
108
|
import "./Swirl-CyGfVZ8n.js";
|
|
109
109
|
import "./ThinFilm-CUsi8eSg.js";
|
|
110
|
-
import "./TiltShift-
|
|
110
|
+
import "./TiltShift-vG90NlLr.js";
|
|
111
111
|
import "./Tint-R7y5CJ4U.js";
|
|
112
112
|
import "./Trapezoid-BXzH--z9.js";
|
|
113
113
|
import "./Tritone-CF4Oj1sl.js";
|
|
@@ -125,5 +125,5 @@ import "./Weave-CFmLkEaq.js";
|
|
|
125
125
|
import "./WebcamTexture-DlS4MCDm.js";
|
|
126
126
|
import "./WorleyNoise-CEZiaVAN.js";
|
|
127
127
|
import "./ZoomBlur-DTVSwIvc.js";
|
|
128
|
-
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-
|
|
128
|
+
import { a as shaderRegistry, i as getShadersByCategory, n as getShaderByName, r as getShaderCategories, t as getAllShaders } from "./shaderRegistry-BVFBmRN3.js";
|
|
129
129
|
export { getAllShaders, getShaderByName, getShaderCategories, getShadersByCategory, shaderRegistry };
|
|
@@ -4,11 +4,11 @@ import { n as componentDefinition$2 } from "./Aurora-D5Pjk4ve.js";
|
|
|
4
4
|
import { n as componentDefinition$3 } from "./BarShift-2XBhva1A.js";
|
|
5
5
|
import { n as componentDefinition$4 } from "./Beam-B3BX08lR.js";
|
|
6
6
|
import { n as componentDefinition$5 } from "./Blob-BT50tDXE.js";
|
|
7
|
-
import { n as componentDefinition$6 } from "./Blur-
|
|
7
|
+
import { n as componentDefinition$6 } from "./Blur-1GcG1L1y.js";
|
|
8
8
|
import { n as componentDefinition$7 } from "./BrickPattern-BfTsjp4I.js";
|
|
9
9
|
import { n as componentDefinition$8 } from "./BrightnessContrast-GppIqtkO.js";
|
|
10
10
|
import { n as componentDefinition$9 } from "./Bulge-DMOATSEs.js";
|
|
11
|
-
import { n as componentDefinition$10 } from "./ChannelBlur-
|
|
11
|
+
import { n as componentDefinition$10 } from "./ChannelBlur-CxlVaYGM.js";
|
|
12
12
|
import { n as componentDefinition$11 } from "./Checkerboard-BVBGTvd-.js";
|
|
13
13
|
import { n as componentDefinition$12 } from "./Chevron-BKZjAXR_.js";
|
|
14
14
|
import { n as componentDefinition$13 } from "./ChromaFlow-C0guw_LP.js";
|
|
@@ -44,10 +44,10 @@ import { n as componentDefinition$42 } from "./FlutedGlass-BJtMfV2c.js";
|
|
|
44
44
|
import { n as componentDefinition$43 } from "./Fog-BQuVDReH.js";
|
|
45
45
|
import { n as componentDefinition$44 } from "./Form3D-DOek31CJ.js";
|
|
46
46
|
import { n as componentDefinition$45 } from "./FractalNoise-Dyhbvx9a.js";
|
|
47
|
-
import { n as componentDefinition$46 } from "./Glass-
|
|
47
|
+
import { n as componentDefinition$46 } from "./Glass-D8DayF1P.js";
|
|
48
48
|
import { n as componentDefinition$47 } from "./GlassTiles-Bb3cuOkr.js";
|
|
49
49
|
import { n as componentDefinition$48 } from "./Glitch-zqdbCc2E.js";
|
|
50
|
-
import { n as componentDefinition$49 } from "./Glow-
|
|
50
|
+
import { n as componentDefinition$49 } from "./Glow-chsUpCyj.js";
|
|
51
51
|
import { n as componentDefinition$50 } from "./Godrays-DdSLZtBs.js";
|
|
52
52
|
import { n as componentDefinition$51 } from "./Grayscale-BC40hfXH.js";
|
|
53
53
|
import { n as componentDefinition$52 } from "./Grid-Lc4S0Hmp.js";
|
|
@@ -74,10 +74,10 @@ import { n as componentDefinition$72 } from "./Plasma-M--gLd1Q.js";
|
|
|
74
74
|
import { n as componentDefinition$73 } from "./PolarCoordinates-C42rlD2q.js";
|
|
75
75
|
import { n as componentDefinition$74 } from "./Polygon-CKqH0ApY.js";
|
|
76
76
|
import { n as componentDefinition$75 } from "./Posterize-B6ZhRkH2.js";
|
|
77
|
-
import { n as componentDefinition$76 } from "./ProgressiveBlur-
|
|
77
|
+
import { n as componentDefinition$76 } from "./ProgressiveBlur-By_PgPtK.js";
|
|
78
78
|
import { n as componentDefinition$77 } from "./RadialGradient-SHxJ9ZNF.js";
|
|
79
79
|
import { n as componentDefinition$78 } from "./RectangularCoordinates-Dw6Xr9uV.js";
|
|
80
|
-
import { n as componentDefinition$79 } from "./ReflectivePlane-
|
|
80
|
+
import { n as componentDefinition$79 } from "./ReflectivePlane-VjZ1E5B0.js";
|
|
81
81
|
import { n as componentDefinition$80 } from "./Ring-V4sEHwwm.js";
|
|
82
82
|
import { n as componentDefinition$81 } from "./Ripples-DC1y3YuP.js";
|
|
83
83
|
import { n as componentDefinition$82 } from "./RoundedRect-JY2z6YEH.js";
|
|
@@ -100,7 +100,7 @@ import { n as componentDefinition$98 } from "./StudioBackground-CWSHq6vE.js";
|
|
|
100
100
|
import { n as componentDefinition$99 } from "./SunBurst-CskZwXc3.js";
|
|
101
101
|
import { n as componentDefinition$100 } from "./Swirl-CyGfVZ8n.js";
|
|
102
102
|
import { n as componentDefinition$101 } from "./ThinFilm-CUsi8eSg.js";
|
|
103
|
-
import { n as componentDefinition$102 } from "./TiltShift-
|
|
103
|
+
import { n as componentDefinition$102 } from "./TiltShift-vG90NlLr.js";
|
|
104
104
|
import { n as componentDefinition$103 } from "./Tint-R7y5CJ4U.js";
|
|
105
105
|
import { n as componentDefinition$104 } from "./Trapezoid-BXzH--z9.js";
|
|
106
106
|
import { n as componentDefinition$105 } from "./Tritone-CF4Oj1sl.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../alpha-C4ptedXe.js";
|
|
2
|
-
import "../../computeBlur-
|
|
3
|
-
import { n as componentDefinition, t as Blur_default } from "../../Blur-
|
|
2
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
3
|
+
import { n as componentDefinition, t as Blur_default } from "../../Blur-1GcG1L1y.js";
|
|
4
4
|
export { componentDefinition, Blur_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../alpha-C4ptedXe.js";
|
|
2
|
-
import "../../computeBlur-
|
|
3
|
-
import { n as componentDefinition, t as ChannelBlur_default } from "../../ChannelBlur-
|
|
2
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
3
|
+
import { n as componentDefinition, t as ChannelBlur_default } from "../../ChannelBlur-CxlVaYGM.js";
|
|
4
4
|
export { componentDefinition, ChannelBlur_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CJcUeZIC.js";
|
|
2
|
-
import "../../computeBlur-
|
|
2
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
3
3
|
import "../../sdf-D_EAGXhN.js";
|
|
4
|
-
import { n as componentDefinition, t as Glass_default } from "../../Glass-
|
|
4
|
+
import { n as componentDefinition, t as Glass_default } from "../../Glass-D8DayF1P.js";
|
|
5
5
|
export { componentDefinition, Glass_default as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Glow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAY1F,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Glow/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAwC,MAAM,iBAAiB,CAAA;AAY1F,MAAM,WAAW,cAAc;IAC3B,SAAS,EAAE,MAAM,CAAA;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAmQnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../alpha-C4ptedXe.js";
|
|
2
|
-
import "../../computeBlur-
|
|
3
|
-
import { n as componentDefinition, t as Glow_default } from "../../Glow-
|
|
2
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
3
|
+
import { n as componentDefinition, t as Glow_default } from "../../Glow-chsUpCyj.js";
|
|
4
4
|
export { componentDefinition, Glow_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CJcUeZIC.js";
|
|
2
2
|
import "../../alpha-C4ptedXe.js";
|
|
3
|
-
import "../../computeBlur-
|
|
4
|
-
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-
|
|
3
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
4
|
+
import { n as componentDefinition, t as ProgressiveBlur_default } from "../../ProgressiveBlur-By_PgPtK.js";
|
|
5
5
|
export { componentDefinition, ProgressiveBlur_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../edges-CX_lJB9R.js";
|
|
2
2
|
import "../../transformations-CJcUeZIC.js";
|
|
3
3
|
import "../../alpha-C4ptedXe.js";
|
|
4
|
-
import "../../computeBlur-
|
|
5
|
-
import { n as componentDefinition, t as ReflectivePlane_default } from "../../ReflectivePlane-
|
|
4
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
5
|
+
import { n as componentDefinition, t as ReflectivePlane_default } from "../../ReflectivePlane-VjZ1E5B0.js";
|
|
6
6
|
export { componentDefinition, ReflectivePlane_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../transformations-CJcUeZIC.js";
|
|
2
2
|
import "../../alpha-C4ptedXe.js";
|
|
3
|
-
import "../../computeBlur-
|
|
4
|
-
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-
|
|
3
|
+
import "../../computeBlur-oxyhoztH.js";
|
|
4
|
+
import { n as componentDefinition, t as TiltShift_default } from "../../TiltShift-vG90NlLr.js";
|
|
5
5
|
export { componentDefinition, TiltShift_default as default };
|
|
@@ -44,5 +44,7 @@ export declare function createGaussianBlurCompute(inputTexture: any, inputWidth:
|
|
|
44
44
|
* input/canvas pixels) per compute pixel. Caller fills the blur map in their own
|
|
45
45
|
* compute pass via the returned `blurMapWriteNode`.
|
|
46
46
|
*/
|
|
47
|
-
export declare function createVariableGaussianBlurCompute(inputTexture: any, inputWidth: number, inputHeight: number, onCleanup: (cb: () => void) => void, halfKernel?: number, computeWidth?: number, computeHeight?: number
|
|
47
|
+
export declare function createVariableGaussianBlurCompute(inputTexture: any, inputWidth: number, inputHeight: number, onCleanup: (cb: () => void) => void, halfKernel?: number, computeWidth?: number, computeHeight?: number, options?: {
|
|
48
|
+
jitterTaps?: boolean;
|
|
49
|
+
}): VariableBlurComputeResult;
|
|
48
50
|
//# sourceMappingURL=computeBlur.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computeBlur.d.ts","sourceRoot":"","sources":["../../src/utilities/computeBlur.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAC,cAAc,EAAC,MAAM,cAAc,CAAA;AAW3C;;;mCAGmC;AACnC,eAAO,MAAM,qBAAqB,OAAO,CAAA;AACzC,eAAO,MAAM,sBAAsB,MAAM,CAAA;AAgBzC,MAAM,WAAW,yBAAyB;IACtC,YAAY,EAAE,GAAG,EAAE,CAAA;IACnB,aAAa,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC,CAAA;IAClD,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAA;IAC3C,kF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