react-native-shine 0.7.1 → 0.8.0
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/lib/module/components/Content.js +112 -145
- package/lib/module/components/Content.js.map +1 -1
- package/lib/module/components/Shine.js +14 -5
- package/lib/module/components/Shine.js.map +1 -1
- package/lib/module/components/ShineGroup.js +0 -4
- package/lib/module/components/ShineGroup.js.map +1 -1
- package/lib/module/enums/colorPresets.js +192 -0
- package/lib/module/enums/colorPresets.js.map +1 -1
- package/lib/module/enums/effectDefaults.js +59 -0
- package/lib/module/enums/effectDefaults.js.map +1 -0
- package/lib/module/enums/effectPresets.js +67 -10
- package/lib/module/enums/effectPresets.js.map +1 -1
- package/lib/module/shaders/bindGroupLayouts.js +47 -29
- package/lib/module/shaders/bindGroupLayouts.js.map +1 -1
- package/lib/module/shaders/bindGroupUtils.js +30 -44
- package/lib/module/shaders/bindGroupUtils.js.map +1 -1
- package/lib/module/shaders/colorConversions.js +78 -0
- package/lib/module/shaders/colorConversions.js.map +1 -0
- package/lib/module/shaders/computeShaders/precomputeColorMask.js +5 -5
- package/lib/module/shaders/computeShaders/precomputeColorMask.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/baseTextureFragment.js +4 -9
- package/lib/module/shaders/fragmentShaders/baseTextureFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/colorMaskFragment.js +28 -41
- package/lib/module/shaders/fragmentShaders/colorMaskFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/glareFlareFragment.js +84 -0
- package/lib/module/shaders/fragmentShaders/glareFlareFragment.js.map +1 -0
- package/lib/module/shaders/fragmentShaders/glareFragment.js +8 -88
- package/lib/module/shaders/fragmentShaders/glareFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/holoFragment.js +120 -11
- package/lib/module/shaders/fragmentShaders/holoFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/maskFragment.js +5 -4
- package/lib/module/shaders/fragmentShaders/maskFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js +7 -7
- package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js.map +1 -1
- package/lib/module/shaders/pipelineSetups.js +2 -61
- package/lib/module/shaders/pipelineSetups.js.map +1 -1
- package/lib/module/shaders/resourceManagement/buffersMap.js +41 -0
- package/lib/module/shaders/resourceManagement/buffersMap.js.map +1 -0
- package/lib/module/shaders/resourceManagement/pipelineMap.js +115 -0
- package/lib/module/shaders/resourceManagement/pipelineMap.js.map +1 -0
- package/lib/module/shaders/resourceManagement/textures.js +2 -2
- package/lib/module/shaders/resourceManagement/textures.js.map +1 -1
- package/lib/module/shaders/tgpuUtils.js +41 -0
- package/lib/module/shaders/tgpuUtils.js.map +1 -1
- package/lib/module/shaders/utils.js +21 -2
- package/lib/module/shaders/utils.js.map +1 -1
- package/lib/module/shaders/vertexShaders/mainRotationEffectVertex.js +4 -4
- package/lib/module/shaders/vertexShaders/mainRotationEffectVertex.js.map +1 -1
- package/lib/module/types/typeUtils.js +26 -155
- package/lib/module/types/typeUtils.js.map +1 -1
- package/lib/module/types/types.js +8 -1
- package/lib/module/types/types.js.map +1 -1
- package/lib/module/utils/size.js +4 -4
- package/lib/module/utils/vector.js +38 -38
- package/lib/typescript/src/components/Content.d.ts +6 -6
- package/lib/typescript/src/components/Content.d.ts.map +1 -1
- package/lib/typescript/src/components/Shine.d.ts.map +1 -1
- package/lib/typescript/src/components/ShineGroup.d.ts +1 -1
- package/lib/typescript/src/components/ShineGroup.d.ts.map +1 -1
- package/lib/typescript/src/enums/colorPresets.d.ts +152 -0
- package/lib/typescript/src/enums/colorPresets.d.ts.map +1 -1
- package/lib/typescript/src/enums/effectDefaults.d.ts +39 -0
- package/lib/typescript/src/enums/effectDefaults.d.ts.map +1 -0
- package/lib/typescript/src/enums/effectPresets.d.ts +284 -5
- package/lib/typescript/src/enums/effectPresets.d.ts.map +1 -1
- package/lib/typescript/src/shaders/bindGroupLayouts.d.ts +77 -41
- package/lib/typescript/src/shaders/bindGroupLayouts.d.ts.map +1 -1
- package/lib/typescript/src/shaders/bindGroupUtils.d.ts +86 -70
- package/lib/typescript/src/shaders/bindGroupUtils.d.ts.map +1 -1
- package/lib/typescript/src/shaders/colorConversions.d.ts +4 -0
- package/lib/typescript/src/shaders/colorConversions.d.ts.map +1 -0
- package/lib/typescript/src/shaders/fragmentShaders/baseTextureFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/colorMaskFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/glareFlareFragment.d.ts +5 -0
- package/lib/typescript/src/shaders/fragmentShaders/glareFlareFragment.d.ts.map +1 -0
- package/lib/typescript/src/shaders/fragmentShaders/glareFragment.d.ts +0 -3
- package/lib/typescript/src/shaders/fragmentShaders/glareFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/holoFragment.d.ts +7 -0
- package/lib/typescript/src/shaders/fragmentShaders/holoFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/maskFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/reverseHoloFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/pipelineSetups.d.ts +0 -6
- package/lib/typescript/src/shaders/pipelineSetups.d.ts.map +1 -1
- package/lib/typescript/src/shaders/resourceManagement/buffersMap.d.ts +10 -0
- package/lib/typescript/src/shaders/resourceManagement/buffersMap.d.ts.map +1 -0
- package/lib/typescript/src/shaders/resourceManagement/pipelineMap.d.ts +24 -0
- package/lib/typescript/src/shaders/resourceManagement/pipelineMap.d.ts.map +1 -0
- package/lib/typescript/src/shaders/resourceManagement/textures.d.ts +0 -1
- package/lib/typescript/src/shaders/resourceManagement/textures.d.ts.map +1 -1
- package/lib/typescript/src/shaders/tgpuUtils.d.ts +3 -0
- package/lib/typescript/src/shaders/tgpuUtils.d.ts.map +1 -1
- package/lib/typescript/src/shaders/utils.d.ts +1 -0
- package/lib/typescript/src/shaders/utils.d.ts.map +1 -1
- package/lib/typescript/src/types/typeUtils.d.ts +8 -47
- package/lib/typescript/src/types/typeUtils.d.ts.map +1 -1
- package/lib/typescript/src/types/types.d.ts +59 -54
- package/lib/typescript/src/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Content.tsx +126 -296
- package/src/components/Shine.tsx +22 -5
- package/src/components/ShineGroup.tsx +0 -4
- package/src/enums/colorPresets.ts +59 -1
- package/src/enums/effectDefaults.ts +57 -0
- package/src/enums/effectPresets.ts +142 -9
- package/src/shaders/bindGroupLayouts.ts +57 -28
- package/src/shaders/bindGroupUtils.ts +66 -69
- package/src/shaders/colorConversions.ts +88 -0
- package/src/shaders/computeShaders/precomputeColorMask.ts +4 -4
- package/src/shaders/fragmentShaders/baseTextureFragment.ts +2 -10
- package/src/shaders/fragmentShaders/colorMaskFragment.ts +34 -55
- package/src/shaders/fragmentShaders/glareFlareFragment.ts +79 -0
- package/src/shaders/fragmentShaders/glareFragment.ts +9 -84
- package/src/shaders/fragmentShaders/holoFragment.ts +139 -11
- package/src/shaders/fragmentShaders/maskFragment.ts +3 -9
- package/src/shaders/fragmentShaders/reverseHoloFragment.ts +4 -9
- package/src/shaders/pipelineSetups.ts +2 -120
- package/src/shaders/resourceManagement/buffersMap.ts +80 -0
- package/src/shaders/resourceManagement/pipelineMap.ts +169 -0
- package/src/shaders/resourceManagement/textures.ts +2 -2
- package/src/shaders/tgpuUtils.ts +29 -0
- package/src/shaders/utils.ts +29 -0
- package/src/shaders/vertexShaders/mainRotationEffectVertex.ts +2 -2
- package/src/types/typeUtils.ts +39 -159
- package/src/types/types.ts +111 -60
|
@@ -1,14 +1,293 @@
|
|
|
1
|
+
import { precomputeColorMaskBindGroupLayout, type ColorMaskArraySchema } from './../shaders/bindGroupLayouts';
|
|
2
|
+
import { type DeepPartial, type ExtractEffectOptions, type UnwrapLayout } from '../types/types';
|
|
3
|
+
import type { StorageFlag, TgpuBindGroup, TgpuBuffer, TgpuComputeFn, TgpuRoot, TgpuTexture, UniformFlag, ValidateUniformSchema } from 'typegpu';
|
|
4
|
+
export declare const blend: GPUBlendState;
|
|
1
5
|
export declare const Effects: {
|
|
2
|
-
readonly
|
|
3
|
-
readonly
|
|
4
|
-
|
|
6
|
+
readonly glare: import("../types/types").EffectDefinition<readonly [{
|
|
7
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
8
|
+
glareColor: import("typegpu/data").WgslStruct<{
|
|
9
|
+
hueShiftAngleMax: import("typegpu/data").F32;
|
|
10
|
+
hueShiftAngleMin: import("typegpu/data").F32;
|
|
11
|
+
hueBlendPower: import("typegpu/data").F32;
|
|
12
|
+
}>;
|
|
13
|
+
glowPower: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
14
|
+
lightIntensity: import("typegpu/data").F32;
|
|
15
|
+
glareIntensity: import("typegpu/data").F32;
|
|
16
|
+
}>;
|
|
17
|
+
readonly defaultOptions: {
|
|
18
|
+
readonly glowPower: 0.5;
|
|
19
|
+
readonly glareIntensity: 0.4;
|
|
20
|
+
readonly lightIntensity: 1.1;
|
|
21
|
+
readonly glareColor: {
|
|
22
|
+
readonly hueBlendPower: 1;
|
|
23
|
+
readonly hueShiftAngleMin: -30;
|
|
24
|
+
readonly hueShiftAngleMax: 30;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}]> & {
|
|
28
|
+
buffers: readonly [{
|
|
29
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
30
|
+
glareColor: import("typegpu/data").WgslStruct<{
|
|
31
|
+
hueShiftAngleMax: import("typegpu/data").F32;
|
|
32
|
+
hueShiftAngleMin: import("typegpu/data").F32;
|
|
33
|
+
hueBlendPower: import("typegpu/data").F32;
|
|
34
|
+
}>;
|
|
35
|
+
glowPower: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
36
|
+
lightIntensity: import("typegpu/data").F32;
|
|
37
|
+
glareIntensity: import("typegpu/data").F32;
|
|
38
|
+
}>;
|
|
39
|
+
defaultOptions: {
|
|
40
|
+
glareColor: {
|
|
41
|
+
hueShiftAngleMax: number;
|
|
42
|
+
hueShiftAngleMin: number;
|
|
43
|
+
hueBlendPower: number;
|
|
44
|
+
};
|
|
45
|
+
glowPower: number;
|
|
46
|
+
lightIntensity: number;
|
|
47
|
+
glareIntensity: number;
|
|
48
|
+
};
|
|
49
|
+
}];
|
|
50
|
+
};
|
|
51
|
+
readonly reverseHolo: import("../types/types").EffectDefinition<readonly [{
|
|
52
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
53
|
+
glareColor: import("typegpu/data").WgslStruct<{
|
|
54
|
+
hueShiftAngleMax: import("typegpu/data").F32;
|
|
55
|
+
hueShiftAngleMin: import("typegpu/data").F32;
|
|
56
|
+
hueBlendPower: import("typegpu/data").F32;
|
|
57
|
+
}>;
|
|
58
|
+
glowPower: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
59
|
+
lightIntensity: import("typegpu/data").F32;
|
|
60
|
+
glareIntensity: import("typegpu/data").F32;
|
|
61
|
+
}>;
|
|
62
|
+
readonly defaultOptions: {
|
|
63
|
+
readonly glowPower: 0.5;
|
|
64
|
+
readonly glareIntensity: 0.4;
|
|
65
|
+
readonly lightIntensity: 1.1;
|
|
66
|
+
readonly glareColor: {
|
|
67
|
+
readonly hueBlendPower: 1;
|
|
68
|
+
readonly hueShiftAngleMin: -30;
|
|
69
|
+
readonly hueShiftAngleMax: 30;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}, {
|
|
73
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
74
|
+
redChannel: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
75
|
+
greenChannel: import("typegpu/data").F32;
|
|
76
|
+
blueChannel: import("typegpu/data").F32;
|
|
77
|
+
hue: import("typegpu/data").F32;
|
|
78
|
+
saturation: import("typegpu/data").F32;
|
|
79
|
+
value: import("typegpu/data").F32;
|
|
80
|
+
}>;
|
|
81
|
+
readonly defaultOptions: {
|
|
5
82
|
readonly redChannel: 1;
|
|
6
83
|
readonly greenChannel: 0;
|
|
7
84
|
readonly blueChannel: 0;
|
|
85
|
+
readonly hue: 0;
|
|
86
|
+
readonly saturation: 0;
|
|
87
|
+
readonly value: 0;
|
|
88
|
+
};
|
|
89
|
+
}]> & {
|
|
90
|
+
buffers: readonly [{
|
|
91
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
92
|
+
glareColor: import("typegpu/data").WgslStruct<{
|
|
93
|
+
hueShiftAngleMax: import("typegpu/data").F32;
|
|
94
|
+
hueShiftAngleMin: import("typegpu/data").F32;
|
|
95
|
+
hueBlendPower: import("typegpu/data").F32;
|
|
96
|
+
}>;
|
|
97
|
+
glowPower: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
98
|
+
lightIntensity: import("typegpu/data").F32;
|
|
99
|
+
glareIntensity: import("typegpu/data").F32;
|
|
100
|
+
}>;
|
|
101
|
+
defaultOptions: {
|
|
102
|
+
glareColor: {
|
|
103
|
+
hueShiftAngleMax: number;
|
|
104
|
+
hueShiftAngleMin: number;
|
|
105
|
+
hueBlendPower: number;
|
|
106
|
+
};
|
|
107
|
+
glowPower: number;
|
|
108
|
+
lightIntensity: number;
|
|
109
|
+
glareIntensity: number;
|
|
110
|
+
};
|
|
111
|
+
}, {
|
|
112
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
113
|
+
redChannel: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
114
|
+
greenChannel: import("typegpu/data").F32;
|
|
115
|
+
blueChannel: import("typegpu/data").F32;
|
|
116
|
+
hue: import("typegpu/data").F32;
|
|
117
|
+
saturation: import("typegpu/data").F32;
|
|
118
|
+
value: import("typegpu/data").F32;
|
|
119
|
+
}>;
|
|
120
|
+
defaultOptions: {
|
|
121
|
+
redChannel: number;
|
|
122
|
+
greenChannel: number;
|
|
123
|
+
blueChannel: number;
|
|
124
|
+
hue: number;
|
|
125
|
+
saturation: number;
|
|
126
|
+
value: number;
|
|
127
|
+
};
|
|
128
|
+
}];
|
|
129
|
+
};
|
|
130
|
+
readonly holo: import("../types/types").EffectDefinition<readonly [{
|
|
131
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
132
|
+
directionDegree: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
133
|
+
shift: import("typegpu/data").F32;
|
|
134
|
+
rotationShiftPower: import("typegpu/data").F32;
|
|
135
|
+
holoSize: import("typegpu/data").F32;
|
|
136
|
+
holoMultiplier: import("typegpu/data").F32;
|
|
137
|
+
holoEaseSize: import("typegpu/data").F32;
|
|
138
|
+
holoVisibility: import("typegpu/data").F32;
|
|
139
|
+
holoSaturation: import("typegpu/data").F32;
|
|
140
|
+
}>;
|
|
141
|
+
readonly defaultOptions: {
|
|
142
|
+
readonly directionDegree: 45;
|
|
143
|
+
readonly shift: 0.1;
|
|
144
|
+
readonly rotationShiftPower: 0.6;
|
|
145
|
+
readonly holoSize: 0.12;
|
|
146
|
+
readonly holoMultiplier: 2.5;
|
|
147
|
+
readonly holoEaseSize: 0.2;
|
|
148
|
+
readonly holoVisibility: 0.88;
|
|
149
|
+
readonly holoSaturation: 0.5;
|
|
8
150
|
};
|
|
151
|
+
}]> & {
|
|
152
|
+
buffers: readonly [{
|
|
153
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
154
|
+
directionDegree: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
155
|
+
shift: import("typegpu/data").F32;
|
|
156
|
+
rotationShiftPower: import("typegpu/data").F32;
|
|
157
|
+
holoSize: import("typegpu/data").F32;
|
|
158
|
+
holoMultiplier: import("typegpu/data").F32;
|
|
159
|
+
holoEaseSize: import("typegpu/data").F32;
|
|
160
|
+
holoVisibility: import("typegpu/data").F32;
|
|
161
|
+
holoSaturation: import("typegpu/data").F32;
|
|
162
|
+
}>;
|
|
163
|
+
defaultOptions: {
|
|
164
|
+
directionDegree: number;
|
|
165
|
+
shift: number;
|
|
166
|
+
rotationShiftPower: number;
|
|
167
|
+
holoSize: number;
|
|
168
|
+
holoMultiplier: number;
|
|
169
|
+
holoEaseSize: number;
|
|
170
|
+
holoVisibility: number;
|
|
171
|
+
holoSaturation: number;
|
|
172
|
+
};
|
|
173
|
+
}];
|
|
9
174
|
};
|
|
10
|
-
readonly
|
|
11
|
-
|
|
175
|
+
readonly doubleHolo: {
|
|
176
|
+
fragment: import("typegpu").TgpuFragmentFn<{
|
|
177
|
+
uv: import("typegpu/data").Vec2f;
|
|
178
|
+
}, import("typegpu/data").Vec4f>;
|
|
179
|
+
buffers: readonly [{
|
|
180
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
181
|
+
directionDegree: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
182
|
+
shift: import("typegpu/data").F32;
|
|
183
|
+
rotationShiftPower: import("typegpu/data").F32;
|
|
184
|
+
holoSize: import("typegpu/data").F32;
|
|
185
|
+
holoMultiplier: import("typegpu/data").F32;
|
|
186
|
+
holoEaseSize: import("typegpu/data").F32;
|
|
187
|
+
holoVisibility: import("typegpu/data").F32;
|
|
188
|
+
holoSaturation: import("typegpu/data").F32;
|
|
189
|
+
}>;
|
|
190
|
+
readonly defaultOptions: {
|
|
191
|
+
readonly directionDegree: 45;
|
|
192
|
+
readonly shift: 0.1;
|
|
193
|
+
readonly rotationShiftPower: 0.6;
|
|
194
|
+
readonly holoSize: 0.12;
|
|
195
|
+
readonly holoMultiplier: 2.5;
|
|
196
|
+
readonly holoEaseSize: 0.2;
|
|
197
|
+
readonly holoVisibility: 0.88;
|
|
198
|
+
readonly holoSaturation: 0.5;
|
|
199
|
+
};
|
|
200
|
+
}] & readonly [{
|
|
201
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
202
|
+
directionDegree: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
203
|
+
shift: import("typegpu/data").F32;
|
|
204
|
+
rotationShiftPower: import("typegpu/data").F32;
|
|
205
|
+
holoSize: import("typegpu/data").F32;
|
|
206
|
+
holoMultiplier: import("typegpu/data").F32;
|
|
207
|
+
holoEaseSize: import("typegpu/data").F32;
|
|
208
|
+
holoVisibility: import("typegpu/data").F32;
|
|
209
|
+
holoSaturation: import("typegpu/data").F32;
|
|
210
|
+
}>;
|
|
211
|
+
defaultOptions: {
|
|
212
|
+
directionDegree: number;
|
|
213
|
+
shift: number;
|
|
214
|
+
rotationShiftPower: number;
|
|
215
|
+
holoSize: number;
|
|
216
|
+
holoMultiplier: number;
|
|
217
|
+
holoEaseSize: number;
|
|
218
|
+
holoVisibility: number;
|
|
219
|
+
holoSaturation: number;
|
|
220
|
+
};
|
|
221
|
+
}];
|
|
222
|
+
bindGroupCreator: (argument: import("../types/types").BindGroupCreatorArgument, buffers: readonly [TgpuBuffer<import("typegpu/data").WgslStruct<{
|
|
223
|
+
directionDegree: import("typegpu/data").Decorated<import("typegpu/data").F32, [import("typegpu/data").Align<16>]>;
|
|
224
|
+
shift: import("typegpu/data").F32;
|
|
225
|
+
rotationShiftPower: import("typegpu/data").F32;
|
|
226
|
+
holoSize: import("typegpu/data").F32;
|
|
227
|
+
holoMultiplier: import("typegpu/data").F32;
|
|
228
|
+
holoEaseSize: import("typegpu/data").F32;
|
|
229
|
+
holoVisibility: import("typegpu/data").F32;
|
|
230
|
+
holoSaturation: import("typegpu/data").F32;
|
|
231
|
+
}>> & UniformFlag]) => TgpuBindGroup[];
|
|
232
|
+
blend?: GPUBlendState;
|
|
233
|
+
};
|
|
234
|
+
readonly glareFlare: import("../types/types").EffectDefinition<readonly [{
|
|
235
|
+
readonly schema: import("typegpu/data").WgslStruct<{
|
|
236
|
+
flareIntensity: import("typegpu/data").F32;
|
|
237
|
+
spotIntensity: import("typegpu/data").F32;
|
|
238
|
+
ringIntensity: import("typegpu/data").F32;
|
|
239
|
+
rayIntensity: import("typegpu/data").F32;
|
|
240
|
+
falloff: import("typegpu/data").F32;
|
|
241
|
+
rayCount: import("typegpu/data").F32;
|
|
242
|
+
}>;
|
|
243
|
+
readonly defaultOptions: {
|
|
244
|
+
flareIntensity: number;
|
|
245
|
+
spotIntensity: number;
|
|
246
|
+
ringIntensity: number;
|
|
247
|
+
rayIntensity: number;
|
|
248
|
+
falloff: number;
|
|
249
|
+
rayCount: number;
|
|
250
|
+
};
|
|
251
|
+
}]> & {
|
|
252
|
+
buffers: readonly [{
|
|
253
|
+
schema: import("typegpu/data").WgslStruct<{
|
|
254
|
+
flareIntensity: import("typegpu/data").F32;
|
|
255
|
+
spotIntensity: import("typegpu/data").F32;
|
|
256
|
+
ringIntensity: import("typegpu/data").F32;
|
|
257
|
+
rayIntensity: import("typegpu/data").F32;
|
|
258
|
+
falloff: import("typegpu/data").F32;
|
|
259
|
+
rayCount: import("typegpu/data").F32;
|
|
260
|
+
}>;
|
|
261
|
+
defaultOptions: {
|
|
262
|
+
flareIntensity: number;
|
|
263
|
+
spotIntensity: number;
|
|
264
|
+
ringIntensity: number;
|
|
265
|
+
rayIntensity: number;
|
|
266
|
+
falloff: number;
|
|
267
|
+
rayCount: number;
|
|
268
|
+
};
|
|
269
|
+
}];
|
|
270
|
+
};
|
|
271
|
+
};
|
|
272
|
+
export type Effect = {
|
|
273
|
+
[K in keyof typeof Effects]: {
|
|
274
|
+
name: K;
|
|
275
|
+
options?: DeepPartial<ExtractEffectOptions<(typeof Effects)[K]>>;
|
|
12
276
|
};
|
|
277
|
+
}[keyof typeof Effects];
|
|
278
|
+
export type ComputePipelineInput = {
|
|
279
|
+
compute: TgpuComputeFn;
|
|
280
|
+
buffers: {
|
|
281
|
+
schema: ValidateUniformSchema<any>;
|
|
282
|
+
defaultOptions: any;
|
|
283
|
+
}[];
|
|
284
|
+
storageTexture: TgpuTexture<{
|
|
285
|
+
format: 'rgba8unorm';
|
|
286
|
+
size: readonly number[];
|
|
287
|
+
}> & StorageFlag;
|
|
288
|
+
bindGroupCreator: (root: TgpuRoot, storageTexture: TgpuTexture<{
|
|
289
|
+
format: 'rgba8unorm';
|
|
290
|
+
size: readonly number[];
|
|
291
|
+
}> & StorageFlag, colorMaskBuffer: TgpuBuffer<ColorMaskArraySchema> & UniformFlag) => TgpuBindGroup<UnwrapLayout<typeof precomputeColorMaskBindGroupLayout>>;
|
|
13
292
|
};
|
|
14
293
|
//# sourceMappingURL=effectPresets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"effectPresets.d.ts","sourceRoot":"","sources":["../../../../src/enums/effectPresets.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"effectPresets.d.ts","sourceRoot":"","sources":["../../../../src/enums/effectPresets.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kCAAkC,EAClC,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAavC,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AAQxB,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,UAAU,EACV,aAAa,EACb,QAAQ,EACR,WAAW,EACX,WAAW,EACX,qBAAqB,EACtB,MAAM,SAAS,CAAC;AASjB,eAAO,MAAM,KAAK,EAAE,aAWnB,CAAC;AAmDF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMV,CAAC;AAEX,MAAM,MAAM,MAAM,GAAG;KAClB,CAAC,IAAI,MAAM,OAAO,OAAO,GAAG;QAC3B,IAAI,EAAE,CAAC,CAAC;QACR,OAAO,CAAC,EAAE,WAAW,CAAC,oBAAoB,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAClE;CACF,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AACxB,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE;QACP,MAAM,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAC;QACnC,cAAc,EAAE,GAAG,CAAC;KACrB,EAAE,CAAC;IACJ,cAAc,EAAE,WAAW,CAAC;QAC1B,MAAM,EAAE,YAAY,CAAC;QACrB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;KACzB,CAAC,GACA,WAAW,CAAC;IACd,gBAAgB,EAAE,CAChB,IAAI,EAAE,QAAQ,EACd,cAAc,EAAE,WAAW,CAAC;QAC1B,MAAM,EAAE,YAAY,CAAC;QACrB,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;KACzB,CAAC,GACA,WAAW,EACb,eAAe,EAAE,UAAU,CAAC,oBAAoB,CAAC,GAAG,WAAW,KAC5D,aAAa,CAAC,YAAY,CAAC,OAAO,kCAAkC,CAAC,CAAC,CAAC;CAC7E,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import * as d from 'typegpu/data';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const rotationSchema: d.Vec3f;
|
|
3
|
+
export declare const sharedBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
3
4
|
texture: {
|
|
4
5
|
texture: d.WgslTexture2d<d.F32>;
|
|
5
6
|
};
|
|
6
7
|
sampler: {
|
|
7
8
|
sampler: "filtering";
|
|
8
9
|
};
|
|
10
|
+
rot: {
|
|
11
|
+
uniform: d.Vec3f;
|
|
12
|
+
};
|
|
9
13
|
}>;
|
|
10
14
|
export declare const maskTextureBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
11
15
|
texture: {
|
|
@@ -15,11 +19,6 @@ export declare const maskTextureBindGroupLayout: import("typegpu").TgpuBindGroup
|
|
|
15
19
|
sampler: "filtering";
|
|
16
20
|
};
|
|
17
21
|
}>;
|
|
18
|
-
export declare const rotationBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
19
|
-
vec: {
|
|
20
|
-
uniform: d.Vec3f;
|
|
21
|
-
};
|
|
22
|
-
}>;
|
|
23
22
|
export declare const glareSchema: d.WgslStruct<{
|
|
24
23
|
glareColor: d.WgslStruct<{
|
|
25
24
|
hueShiftAngleMax: d.F32;
|
|
@@ -51,19 +50,15 @@ export declare const colorMaskSchema: d.WgslStruct<{
|
|
|
51
50
|
upper: d.Vec3f;
|
|
52
51
|
lower: d.Vec3f;
|
|
53
52
|
}>;
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
lower: d.F32;
|
|
57
|
-
}>;
|
|
53
|
+
hueStart: d.F32;
|
|
54
|
+
hueRange: d.F32;
|
|
58
55
|
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
lowSaturationThreshold: d.F32;
|
|
62
|
-
lowBrightnessThreshold: d.F32;
|
|
56
|
+
minLimits: d.Vec2f;
|
|
57
|
+
maxLimits: d.Vec2f;
|
|
63
58
|
debugMode: d.U32;
|
|
64
59
|
}>;
|
|
65
|
-
export type ColorMaskSchema = typeof colorMaskSchema
|
|
66
|
-
export declare const COLOR_MASK_MAX_COUNT =
|
|
60
|
+
export type ColorMaskSchema = d.Infer<typeof colorMaskSchema>;
|
|
61
|
+
export declare const COLOR_MASK_MAX_COUNT = 8;
|
|
67
62
|
export declare const colorMaskArraySchema: d.WgslStruct<{
|
|
68
63
|
masks: d.WgslArray<d.WgslStruct<{
|
|
69
64
|
baseColor: d.Vec3f;
|
|
@@ -71,15 +66,11 @@ export declare const colorMaskArraySchema: d.WgslStruct<{
|
|
|
71
66
|
upper: d.Vec3f;
|
|
72
67
|
lower: d.Vec3f;
|
|
73
68
|
}>;
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
lower: d.F32;
|
|
77
|
-
}>;
|
|
69
|
+
hueStart: d.F32;
|
|
70
|
+
hueRange: d.F32;
|
|
78
71
|
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
lowSaturationThreshold: d.F32;
|
|
82
|
-
lowBrightnessThreshold: d.F32;
|
|
72
|
+
minLimits: d.Vec2f;
|
|
73
|
+
maxLimits: d.Vec2f;
|
|
83
74
|
debugMode: d.U32;
|
|
84
75
|
}>>;
|
|
85
76
|
usedMaskCount: d.I32;
|
|
@@ -95,15 +86,11 @@ export declare const colorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLa
|
|
|
95
86
|
upper: d.Vec3f;
|
|
96
87
|
lower: d.Vec3f;
|
|
97
88
|
}>;
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
lower: d.F32;
|
|
101
|
-
}>;
|
|
89
|
+
hueStart: d.F32;
|
|
90
|
+
hueRange: d.F32;
|
|
102
91
|
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
lowSaturationThreshold: d.F32;
|
|
106
|
-
lowBrightnessThreshold: d.F32;
|
|
92
|
+
minLimits: d.Vec2f;
|
|
93
|
+
maxLimits: d.Vec2f;
|
|
107
94
|
debugMode: d.U32;
|
|
108
95
|
}>>;
|
|
109
96
|
usedMaskCount: d.I32;
|
|
@@ -144,11 +131,64 @@ export declare const reverseHoloDetectionChannelFlagsBindGroupLayout: import("ty
|
|
|
144
131
|
}>;
|
|
145
132
|
};
|
|
146
133
|
}>;
|
|
134
|
+
export declare const holoSchema: d.WgslStruct<{
|
|
135
|
+
directionDegree: d.Decorated<d.F32, [d.Align<16>]>;
|
|
136
|
+
shift: d.F32;
|
|
137
|
+
rotationShiftPower: d.F32;
|
|
138
|
+
holoSize: d.F32;
|
|
139
|
+
holoMultiplier: d.F32;
|
|
140
|
+
holoEaseSize: d.F32;
|
|
141
|
+
holoVisibility: d.F32;
|
|
142
|
+
holoSaturation: d.F32;
|
|
143
|
+
}>;
|
|
144
|
+
export type HoloSchema = typeof holoSchema;
|
|
145
|
+
export declare const holoBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
146
|
+
holoOptions: {
|
|
147
|
+
uniform: d.WgslStruct<{
|
|
148
|
+
directionDegree: d.Decorated<d.F32, [d.Align<16>]>;
|
|
149
|
+
shift: d.F32;
|
|
150
|
+
rotationShiftPower: d.F32;
|
|
151
|
+
holoSize: d.F32;
|
|
152
|
+
holoMultiplier: d.F32;
|
|
153
|
+
holoEaseSize: d.F32;
|
|
154
|
+
holoVisibility: d.F32;
|
|
155
|
+
holoSaturation: d.F32;
|
|
156
|
+
}>;
|
|
157
|
+
};
|
|
158
|
+
}>;
|
|
159
|
+
export declare const glareFlareSchema: d.WgslStruct<{
|
|
160
|
+
flareIntensity: d.F32;
|
|
161
|
+
spotIntensity: d.F32;
|
|
162
|
+
ringIntensity: d.F32;
|
|
163
|
+
rayIntensity: d.F32;
|
|
164
|
+
falloff: d.F32;
|
|
165
|
+
rayCount: d.F32;
|
|
166
|
+
}>;
|
|
167
|
+
export type glareFlareSchema = typeof glareFlareSchema;
|
|
168
|
+
export declare const glareFlareBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
169
|
+
glareFlare: {
|
|
170
|
+
uniform: d.WgslStruct<{
|
|
171
|
+
flareIntensity: d.F32;
|
|
172
|
+
spotIntensity: d.F32;
|
|
173
|
+
ringIntensity: d.F32;
|
|
174
|
+
rayIntensity: d.F32;
|
|
175
|
+
falloff: d.F32;
|
|
176
|
+
rayCount: d.F32;
|
|
177
|
+
}>;
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
180
|
+
export declare const precomputeTextureSchema: d.WgslStorageTexture2d<"rgba8unorm", "read-write">;
|
|
181
|
+
export type PrecomputeTextureSchema = typeof precomputeTextureSchema;
|
|
147
182
|
export declare const precomputeColorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
148
|
-
|
|
183
|
+
colorMaskStorage: {
|
|
149
184
|
storageTexture: d.WgslStorageTexture2d<"rgba8unorm", "read-write">;
|
|
150
185
|
};
|
|
151
186
|
}>;
|
|
187
|
+
export declare const precomputeColorMaskOutputBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
188
|
+
colorMaskOutput: {
|
|
189
|
+
texture: d.WgslTexture2d<d.F32>;
|
|
190
|
+
};
|
|
191
|
+
}>;
|
|
152
192
|
export type BufferSchemas = d.Vec3f | ReverseHoloDetectionChannelFlagsSchema | ColorMaskArraySchema | GlareSchema;
|
|
153
193
|
export declare const bufferData: {
|
|
154
194
|
readonly rotation: {
|
|
@@ -176,15 +216,11 @@ export declare const bufferData: {
|
|
|
176
216
|
upper: d.Vec3f;
|
|
177
217
|
lower: d.Vec3f;
|
|
178
218
|
}>;
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
lower: d.F32;
|
|
182
|
-
}>;
|
|
219
|
+
hueStart: d.F32;
|
|
220
|
+
hueRange: d.F32;
|
|
183
221
|
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
lowSaturationThreshold: d.F32;
|
|
187
|
-
lowBrightnessThreshold: d.F32;
|
|
222
|
+
minLimits: d.Vec2f;
|
|
223
|
+
maxLimits: d.Vec2f;
|
|
188
224
|
debugMode: d.U32;
|
|
189
225
|
}>>;
|
|
190
226
|
usedMaskCount: d.I32;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindGroupLayouts.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupLayouts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"bindGroupLayouts.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupLayouts.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,eAAO,MAAM,cAAc,SAAU,CAAC;AAEtC,eAAO,MAAM,qBAAqB;;;;;;;;;;EAIhC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;EAStB,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;EAE/B,CAAC;AAGH,eAAO,MAAM,eAAe;;;;;;;;;;;;EAY1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAE9D,eAAO,MAAM,oBAAoB,IAAI,CAAC;AAEtC,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;EAI/B,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC;AAE/D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;EAEnC,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;EAOjD,CAAC;AAEH,MAAM,MAAM,sCAAsC,GAChD,OAAO,sCAAsC,CAAC;AAEhD,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;EAIxD,CAAC;AAEL,eAAO,MAAM,UAAU;;;;;;;;;EASrB,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAE3C,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;EAE9B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;EAO3B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC;AAEvD,eAAO,MAAM,yBAAyB;;;;;;;;;;;EAEpC,CAAC;AAEH,eAAO,MAAM,uBAAuB,oDAGnC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC;AAErE,eAAO,MAAM,kCAAkC;;;;EAI7C,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;;EAInD,CAAC;AAEH,MAAM,MAAM,aAAa,GACrB,CAAC,CAAC,KAAK,GACP,sCAAsC,GACtC,oBAAoB,GACpB,WAAW,CAAC;AAEhB,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBtB,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC"}
|