shaders 2.2.38 → 2.2.40
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/Tint-BUFsUBqI.js +56 -0
- package/dist/core/index.js +19 -17
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/Tint/index.d.ts +29 -0
- package/dist/core/shaders/Tint/index.d.ts.map +1 -0
- package/dist/core/shaders/Tint/index.js +3 -0
- package/dist/core/shaders/Tritone/index.js +1 -1
- package/dist/core/shaders/Twirl/index.js +1 -1
- package/dist/core/shaders/Vibrance/index.js +1 -1
- package/dist/core/shaders/WaveDistortion/index.js +1 -1
- package/dist/core/shaders/ZoomBlur/index.js +1 -1
- package/dist/react/components/Tint.d.ts +31 -0
- package/dist/react/components/Tint.d.ts.map +1 -0
- package/dist/react/{generatePresetCode-CPcLELa5.js → generatePresetCode-BCeSxN_V.js} +8 -0
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +549 -410
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +1 -1
- package/dist/registry.js +71 -0
- package/dist/solid/components/AngularBlur.d.ts.map +1 -1
- package/dist/solid/components/Ascii.d.ts.map +1 -1
- package/dist/solid/components/Beam.d.ts.map +1 -1
- package/dist/solid/components/Blob.d.ts.map +1 -1
- package/dist/solid/components/Blur.d.ts.map +1 -1
- package/dist/solid/components/BrightnessContrast.d.ts.map +1 -1
- package/dist/solid/components/Bulge.d.ts.map +1 -1
- package/dist/solid/components/CRTScreen.d.ts.map +1 -1
- package/dist/solid/components/ChannelBlur.d.ts.map +1 -1
- package/dist/solid/components/Checkerboard.d.ts.map +1 -1
- package/dist/solid/components/ChromaFlow.d.ts.map +1 -1
- package/dist/solid/components/ChromaticAberration.d.ts.map +1 -1
- package/dist/solid/components/Circle.d.ts.map +1 -1
- package/dist/solid/components/CursorTrail.d.ts.map +1 -1
- package/dist/solid/components/DiffuseBlur.d.ts.map +1 -1
- package/dist/solid/components/Dither.d.ts.map +1 -1
- package/dist/solid/components/DotGrid.d.ts.map +1 -1
- package/dist/solid/components/Duotone.d.ts.map +1 -1
- package/dist/solid/components/FilmGrain.d.ts.map +1 -1
- package/dist/solid/components/FloatingParticles.d.ts.map +1 -1
- package/dist/solid/components/GlassTiles.d.ts.map +1 -1
- package/dist/solid/components/Glow.d.ts.map +1 -1
- package/dist/solid/components/Godrays.d.ts.map +1 -1
- package/dist/solid/components/Grayscale.d.ts.map +1 -1
- package/dist/solid/components/Grid.d.ts.map +1 -1
- package/dist/solid/components/GridDistortion.d.ts.map +1 -1
- package/dist/solid/components/Group.d.ts.map +1 -1
- package/dist/solid/components/Halftone.d.ts.map +1 -1
- package/dist/solid/components/HueShift.d.ts.map +1 -1
- package/dist/solid/components/ImageTexture.d.ts.map +1 -1
- package/dist/solid/components/Invert.d.ts.map +1 -1
- package/dist/solid/components/LinearBlur.d.ts.map +1 -1
- package/dist/solid/components/LinearGradient.d.ts.map +1 -1
- package/dist/solid/components/Liquify.d.ts.map +1 -1
- package/dist/solid/components/Perspective.d.ts.map +1 -1
- package/dist/solid/components/Pixelate.d.ts.map +1 -1
- package/dist/solid/components/PolarCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Posterize.d.ts.map +1 -1
- package/dist/solid/components/ProgressiveBlur.d.ts.map +1 -1
- package/dist/solid/components/RadialGradient.d.ts.map +1 -1
- package/dist/solid/components/RectangularCoordinates.d.ts.map +1 -1
- package/dist/solid/components/Ripples.d.ts.map +1 -1
- package/dist/solid/components/Saturation.d.ts.map +1 -1
- package/dist/solid/components/Sharpness.d.ts.map +1 -1
- package/dist/solid/components/SimplexNoise.d.ts.map +1 -1
- package/dist/solid/components/SineWave.d.ts.map +1 -1
- package/dist/solid/components/SolidColor.d.ts.map +1 -1
- package/dist/solid/components/Spherize.d.ts.map +1 -1
- package/dist/solid/components/Spiral.d.ts.map +1 -1
- package/dist/solid/components/Strands.d.ts.map +1 -1
- package/dist/solid/components/Stretch.d.ts.map +1 -1
- package/dist/solid/components/Swirl.d.ts.map +1 -1
- package/dist/solid/components/TiltShift.d.ts.map +1 -1
- package/dist/solid/components/Tint.d.ts +28 -0
- package/dist/solid/components/Tint.d.ts.map +1 -0
- package/dist/solid/components/Tritone.d.ts.map +1 -1
- package/dist/solid/components/Twirl.d.ts.map +1 -1
- package/dist/solid/components/Vibrance.d.ts.map +1 -1
- package/dist/solid/components/WaveDistortion.d.ts.map +1 -1
- package/dist/solid/components/ZoomBlur.d.ts.map +1 -1
- package/dist/solid/engine/Shader.d.ts.map +1 -1
- package/dist/solid/engine/component.template.d.ts.map +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +724 -583
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +8 -0
- package/dist/svelte/components/Tint.svelte.d.ts +19 -0
- package/dist/svelte/{generatePresetCode-By5juLjK.js → generatePresetCode-BFY8wlyB.js} +8 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +123 -12
- package/dist/svelte/utils/generatePresetCode.js +1 -1
- package/dist/vue/components/Tint.vue.d.ts +57 -0
- package/dist/vue/components/Tint.vue.d.ts.map +1 -0
- package/dist/vue/{generatePresetCode-REXb9hnv.js → generatePresetCode-D3MinGC_.js} +8 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +159 -36
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +1 -1
- package/package.json +9 -1
- /package/dist/core/{Tritone-CJW8YTyB.js → Tritone-DS1QbB-T.js} +0 -0
- /package/dist/core/{Twirl-5k_XPd51.js → Twirl-w3PgFOlA.js} +0 -0
- /package/dist/core/{Vibrance-c25pkbWj.js → Vibrance--gtdjy4j.js} +0 -0
- /package/dist/core/{WaveDistortion-Bo2Ar13M.js → WaveDistortion-BfhB1rjJ.js} +0 -0
- /package/dist/core/{ZoomBlur-DEozXA8U.js → ZoomBlur-DxUocLAG.js} +0 -0
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { r as transformColor } from "./transformations-YbhRK-rd.js";
|
|
2
|
+
import { dot, max, mix, vec3, vec4 } from "three/tsl";
|
|
3
|
+
const componentDefinition = {
|
|
4
|
+
name: "Tint",
|
|
5
|
+
category: "Adjustments",
|
|
6
|
+
description: "Apply a color tint to the image",
|
|
7
|
+
requiresChild: true,
|
|
8
|
+
props: {
|
|
9
|
+
color: {
|
|
10
|
+
default: "#ff8800",
|
|
11
|
+
transform: transformColor,
|
|
12
|
+
description: "Tint color",
|
|
13
|
+
ui: {
|
|
14
|
+
type: "color",
|
|
15
|
+
label: "Tint Color"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
amount: {
|
|
19
|
+
default: .5,
|
|
20
|
+
description: "Tint amount (0 = no tint, 1 = full tint)",
|
|
21
|
+
ui: {
|
|
22
|
+
type: "range",
|
|
23
|
+
min: 0,
|
|
24
|
+
max: 1,
|
|
25
|
+
step: .01,
|
|
26
|
+
label: "Amount"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
preserveLuminosity: {
|
|
30
|
+
default: true,
|
|
31
|
+
description: "Preserve original brightness",
|
|
32
|
+
ui: {
|
|
33
|
+
type: "checkbox",
|
|
34
|
+
label: "Preserve Luminosity"
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
fragmentNode: ({ uniforms, childNode }) => {
|
|
39
|
+
if (!childNode) {
|
|
40
|
+
console.error("You must pass a child component into the Tint shader.");
|
|
41
|
+
return vec4(0);
|
|
42
|
+
}
|
|
43
|
+
const tintColor = uniforms.color.uniform;
|
|
44
|
+
const amount = uniforms.amount.uniform;
|
|
45
|
+
const preserveLum = uniforms.preserveLuminosity.uniform;
|
|
46
|
+
const rgb = vec3(childNode.r, childNode.g, childNode.b);
|
|
47
|
+
const luminanceWeights = vec3(.299, .587, .114);
|
|
48
|
+
const originalLum = dot(rgb, luminanceWeights);
|
|
49
|
+
const tinted = mix(rgb, tintColor.rgb, amount);
|
|
50
|
+
const tintedLum = dot(tinted, luminanceWeights);
|
|
51
|
+
const lumPreserved = tinted.mul(originalLum.div(max(tintedLum, 1e-4)));
|
|
52
|
+
return vec4(preserveLum.select(lumPreserved, tinted), childNode.a);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
var Tint_default = componentDefinition;
|
|
56
|
+
export { componentDefinition as n, Tint_default as t };
|
package/dist/core/index.js
CHANGED
|
@@ -55,11 +55,12 @@ import { n as componentDefinition$49 } from "./Strands-B9vY4uA7.js";
|
|
|
55
55
|
import { n as componentDefinition$50 } from "./Stretch-BhHjbcqd.js";
|
|
56
56
|
import { n as componentDefinition$51 } from "./Swirl-DoCDBZad.js";
|
|
57
57
|
import { n as componentDefinition$52 } from "./TiltShift-BYQjUHpn.js";
|
|
58
|
-
import { n as componentDefinition$53 } from "./
|
|
59
|
-
import { n as componentDefinition$54 } from "./
|
|
60
|
-
import { n as componentDefinition$55 } from "./
|
|
61
|
-
import { n as componentDefinition$56 } from "./
|
|
62
|
-
import { n as componentDefinition$57 } from "./
|
|
58
|
+
import { n as componentDefinition$53 } from "./Tint-BUFsUBqI.js";
|
|
59
|
+
import { n as componentDefinition$54 } from "./Tritone-DS1QbB-T.js";
|
|
60
|
+
import { n as componentDefinition$55 } from "./Twirl-w3PgFOlA.js";
|
|
61
|
+
import { n as componentDefinition$56 } from "./Vibrance--gtdjy4j.js";
|
|
62
|
+
import { n as componentDefinition$57 } from "./WaveDistortion-BfhB1rjJ.js";
|
|
63
|
+
import { n as componentDefinition$58 } from "./ZoomBlur-DxUocLAG.js";
|
|
63
64
|
import { Material, Mesh, MeshBasicNodeMaterial, OrthographicCamera, PlaneGeometry, SRGBColorSpace, Scene, WebGPURenderer } from "three/webgpu";
|
|
64
65
|
import { WebGLRenderer } from "three";
|
|
65
66
|
import { PI, abs, add, atan, convertToTexture, cos, div, dot, float, fract, max, min, mix, mul, pow, screenUV, sin, smoothstep, sqrt, step, sub, time, uniform, uv, vec2, vec3, vec4 } from "three/tsl";
|
|
@@ -1086,7 +1087,7 @@ function shaderRenderer() {
|
|
|
1086
1087
|
}
|
|
1087
1088
|
}
|
|
1088
1089
|
};
|
|
1089
|
-
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$
|
|
1090
|
+
const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition$59) => {
|
|
1090
1091
|
if (fragmentNodeFunc === null) {
|
|
1091
1092
|
const queueIndex = pendingRegistrationQueue.findIndex((item) => item.id === id);
|
|
1092
1093
|
if (queueIndex !== -1) {
|
|
@@ -1104,7 +1105,7 @@ function shaderRenderer() {
|
|
|
1104
1105
|
parentId,
|
|
1105
1106
|
metadata,
|
|
1106
1107
|
uniforms,
|
|
1107
|
-
componentDefinition: componentDefinition$
|
|
1108
|
+
componentDefinition: componentDefinition$59
|
|
1108
1109
|
};
|
|
1109
1110
|
else pendingRegistrationQueue.push({
|
|
1110
1111
|
id,
|
|
@@ -1112,7 +1113,7 @@ function shaderRenderer() {
|
|
|
1112
1113
|
parentId,
|
|
1113
1114
|
metadata,
|
|
1114
1115
|
uniforms,
|
|
1115
|
-
componentDefinition: componentDefinition$
|
|
1116
|
+
componentDefinition: componentDefinition$59
|
|
1116
1117
|
});
|
|
1117
1118
|
return;
|
|
1118
1119
|
}
|
|
@@ -1145,11 +1146,11 @@ function shaderRenderer() {
|
|
|
1145
1146
|
}
|
|
1146
1147
|
const nodeInfo = {
|
|
1147
1148
|
id,
|
|
1148
|
-
componentName: componentDefinition$
|
|
1149
|
+
componentName: componentDefinition$59?.name || "Unknown",
|
|
1149
1150
|
fragmentNodeFunc,
|
|
1150
1151
|
parentId,
|
|
1151
|
-
requiresRTT: componentDefinition$
|
|
1152
|
-
requiresChild: componentDefinition$
|
|
1152
|
+
requiresRTT: componentDefinition$59?.requiresRTT || false,
|
|
1153
|
+
requiresChild: componentDefinition$59?.requiresChild || false,
|
|
1153
1154
|
opacityUniform,
|
|
1154
1155
|
metadata: {
|
|
1155
1156
|
blendMode: metadata?.blendMode || "normal",
|
|
@@ -1465,7 +1466,7 @@ function shaderRenderer() {
|
|
|
1465
1466
|
if (pendingRegistrationQueue.length === 0) return;
|
|
1466
1467
|
const queue = [...pendingRegistrationQueue];
|
|
1467
1468
|
pendingRegistrationQueue = [];
|
|
1468
|
-
for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$
|
|
1469
|
+
for (const { id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition: componentDefinition$59 } of queue) if (fragmentNodeFunc) registerNode(id, fragmentNodeFunc, parentId, metadata, uniforms, componentDefinition$59);
|
|
1469
1470
|
};
|
|
1470
1471
|
const initialize = async ({ canvas, enablePerformanceTracking: enableTracking = false }) => {
|
|
1471
1472
|
if (isInitialized || isInitializing) return;
|
|
@@ -1813,11 +1814,12 @@ var createShaderRegistry = () => {
|
|
|
1813
1814
|
Stretch: componentDefinition$50,
|
|
1814
1815
|
Swirl: componentDefinition$51,
|
|
1815
1816
|
TiltShift: componentDefinition$52,
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1817
|
+
Tint: componentDefinition$53,
|
|
1818
|
+
Tritone: componentDefinition$54,
|
|
1819
|
+
Twirl: componentDefinition$55,
|
|
1820
|
+
Vibrance: componentDefinition$56,
|
|
1821
|
+
WaveDistortion: componentDefinition$57,
|
|
1822
|
+
ZoomBlur: componentDefinition$58
|
|
1821
1823
|
};
|
|
1822
1824
|
Object.entries(shaderDefinitions).forEach(([fileName, def]) => {
|
|
1823
1825
|
const propsMetadata = {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shaderRegistry.d.ts","sourceRoot":"","sources":["../src/shaderRegistry.ts"],"names":[],"mappings":"AA8DA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAA;IACpC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE;QAC5B,EAAE,CAAC,EAAE,GAAG,CAAA;QACR,OAAO,CAAC,EAAE,GAAG,CAAA;QACb,WAAW,CAAC,EAAE,MAAM,CAAA;KACrB,CAAC,CAAA;CACH;AA+FD,eAAO,MAAM,cAAc,qCAAyB,CAAA;AAGpD,wBAAgB,aAAa,IAAI,mBAAmB,EAAE,CAErD;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,mBAAmB,GAAG,SAAS,CAE7E;AAED,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,GAAG,mBAAmB,EAAE,CAE5E;AAED,wBAAgB,mBAAmB,IAAI,MAAM,EAAE,CAG9C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ComponentDefinition } from '../../types';
|
|
2
|
+
import { transformColor } from '../../utilities/transformations';
|
|
3
|
+
|
|
4
|
+
export interface ComponentProps {
|
|
5
|
+
/**
|
|
6
|
+
* Tint color
|
|
7
|
+
*
|
|
8
|
+
* Accepts hex strings (`#ff0000`), RGB objects (`{ r, g, b }`), or CSS color names (`limegreen`).
|
|
9
|
+
* @default "#ff8800"
|
|
10
|
+
*/
|
|
11
|
+
color: Parameters<typeof transformColor>[0];
|
|
12
|
+
/**
|
|
13
|
+
* Tint amount (0 = no tint, 1 = full tint)
|
|
14
|
+
*
|
|
15
|
+
* Accepts a number between 0 and 1.
|
|
16
|
+
* @default 0.5
|
|
17
|
+
*/
|
|
18
|
+
amount: number;
|
|
19
|
+
/**
|
|
20
|
+
* Preserve original brightness
|
|
21
|
+
*
|
|
22
|
+
* Accepts a boolean value (`true` or `false`).
|
|
23
|
+
* @default true
|
|
24
|
+
*/
|
|
25
|
+
preserveLuminosity: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare const componentDefinition: ComponentDefinition<ComponentProps>;
|
|
28
|
+
export default componentDefinition;
|
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shaders/Tint/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,mBAAmB,EAAqB,MAAM,iBAAiB,CAAA;AAGvE,OAAO,EAAC,cAAc,EAAC,MAAM,qCAAqC,CAAA;AAElE,MAAM,WAAW,cAAc;IAC3B,KAAK,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3C,MAAM,EAAE,MAAM,CAAA;IACd,kBAAkB,EAAE,OAAO,CAAA;CAC9B;AAED,eAAO,MAAM,mBAAmB,EAAE,mBAAmB,CAAC,cAAc,CAoDnE,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
2
|
import "../../colorMixing-CZPFmiT4.js";
|
|
3
|
-
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-
|
|
3
|
+
import { n as componentDefinition, t as Tritone_default } from "../../Tritone-DS1QbB-T.js";
|
|
4
4
|
export { componentDefinition, Tritone_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
|
-
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-
|
|
3
|
+
import { n as componentDefinition, t as Twirl_default } from "../../Twirl-w3PgFOlA.js";
|
|
4
4
|
export { componentDefinition, Twirl_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance
|
|
1
|
+
import { n as componentDefinition, t as Vibrance_default } from "../../Vibrance--gtdjy4j.js";
|
|
2
2
|
export { componentDefinition, Vibrance_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../../edges-Bd7GP4s2.js";
|
|
2
2
|
import "../../transformations-YbhRK-rd.js";
|
|
3
3
|
import "../../time-BZqyVJXt.js";
|
|
4
|
-
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-
|
|
4
|
+
import { n as componentDefinition, t as WaveDistortion_default } from "../../WaveDistortion-BfhB1rjJ.js";
|
|
5
5
|
export { componentDefinition, WaveDistortion_default as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "../../transformations-YbhRK-rd.js";
|
|
2
|
-
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-
|
|
2
|
+
import { n as componentDefinition, t as ZoomBlur_default } from "../../ZoomBlur-DxUocLAG.js";
|
|
3
3
|
export { componentDefinition, ZoomBlur_default as default };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { BlendMode, TransformConfig } from '../../core';
|
|
3
|
+
import { ComponentProps } from '../../core/shaders/Tint';
|
|
4
|
+
|
|
5
|
+
export type { ComponentProps };
|
|
6
|
+
/**
|
|
7
|
+
* Base props that all shader components have
|
|
8
|
+
*/
|
|
9
|
+
interface BaseShaderProps {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
blendMode?: BlendMode;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
visible?: boolean;
|
|
14
|
+
id?: string;
|
|
15
|
+
maskSource?: string;
|
|
16
|
+
maskType?: string;
|
|
17
|
+
renderOrder?: number;
|
|
18
|
+
transform?: Partial<TransformConfig>;
|
|
19
|
+
ref?: React.Ref<any>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Component-specific props that merge base props with shader-specific props
|
|
23
|
+
* Note: ComponentProps are made optional since they have defaults from the shader definition
|
|
24
|
+
*/
|
|
25
|
+
type ShaderComponentProps = BaseShaderProps & Partial<ComponentProps>;
|
|
26
|
+
/**
|
|
27
|
+
* The main React wrapper component for Shader shader nodes
|
|
28
|
+
*/
|
|
29
|
+
export declare const OmbreComponent: React.FC<ShaderComponentProps>;
|
|
30
|
+
export default OmbreComponent;
|
|
31
|
+
//# sourceMappingURL=Tint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tint.d.ts","sourceRoot":"","sources":["../../src/components/Tint.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiD,MAAM,OAAO,CAAC;AACtE,OAAO,EAGH,KAAK,SAAS,EAId,KAAK,eAAe,EACvB,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAuB,KAAK,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAG7E,YAAY,EAAE,cAAc,EAAE,CAAC;AAI/B;;GAEG;AACH,UAAU,eAAe;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IACrC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;CACxB;AAED;;;GAGG;AACH,KAAK,oBAAoB,GAAG,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAsDtE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAwJzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -534,6 +534,13 @@ var shaderMetadata = {
|
|
|
534
534
|
"y": .5
|
|
535
535
|
}
|
|
536
536
|
},
|
|
537
|
+
"Tint": {
|
|
538
|
+
"opacity": 1,
|
|
539
|
+
"blendMode": "normal",
|
|
540
|
+
"color": "#ff8800",
|
|
541
|
+
"amount": .5,
|
|
542
|
+
"preserveLuminosity": true
|
|
543
|
+
},
|
|
537
544
|
"Tritone": {
|
|
538
545
|
"opacity": 1,
|
|
539
546
|
"blendMode": "normal",
|
|
@@ -696,6 +703,7 @@ const availableComponents = [
|
|
|
696
703
|
"Stretch",
|
|
697
704
|
"Swirl",
|
|
698
705
|
"TiltShift",
|
|
706
|
+
"Tint",
|
|
699
707
|
"Tritone",
|
|
700
708
|
"Twirl",
|
|
701
709
|
"Vibrance",
|
package/dist/react/index.d.ts
CHANGED
|
@@ -51,6 +51,7 @@ export { default as Strands } from './components/Strands';
|
|
|
51
51
|
export { default as Stretch } from './components/Stretch';
|
|
52
52
|
export { default as Swirl } from './components/Swirl';
|
|
53
53
|
export { default as TiltShift } from './components/TiltShift';
|
|
54
|
+
export { default as Tint } from './components/Tint';
|
|
54
55
|
export { default as Tritone } from './components/Tritone';
|
|
55
56
|
export { default as Twirl } from './components/Twirl';
|
|
56
57
|
export { default as Vibrance } from './components/Vibrance';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD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