react-native-shine 0.6.0 → 0.7.1
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 +79 -41
- package/lib/module/components/Content.js.map +1 -1
- package/lib/module/components/Shine.js +10 -0
- package/lib/module/components/Shine.js.map +1 -1
- package/lib/module/components/ShineGroup.js +16 -8
- package/lib/module/components/ShineGroup.js.map +1 -1
- package/lib/module/enums/colorHighlightPresets.js +24 -0
- package/lib/module/enums/colorHighlightPresets.js.map +1 -0
- package/lib/module/enums/effectPresets.js +16 -0
- package/lib/module/enums/effectPresets.js.map +1 -0
- package/lib/module/index.js +2 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/shaders/bindGroupLayouts.js +24 -15
- package/lib/module/shaders/bindGroupLayouts.js.map +1 -1
- package/lib/module/shaders/bindGroupUtils.js +16 -7
- package/lib/module/shaders/bindGroupUtils.js.map +1 -1
- package/lib/module/shaders/computeShaders/precomputeColorMask.js +34 -0
- package/lib/module/shaders/computeShaders/precomputeColorMask.js.map +1 -0
- package/lib/module/shaders/fragmentShaders/colorMaskFragment.js +53 -41
- package/lib/module/shaders/fragmentShaders/colorMaskFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/glareFragment.js +11 -8
- package/lib/module/shaders/fragmentShaders/glareFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/holoFragment.js +6 -5
- package/lib/module/shaders/fragmentShaders/holoFragment.js.map +1 -1
- package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js +12 -8
- package/lib/module/shaders/fragmentShaders/reverseHoloFragment.js.map +1 -1
- package/lib/module/shaders/pipelineSetups.js +3 -1
- package/lib/module/shaders/pipelineSetups.js.map +1 -1
- package/lib/module/shaders/resourceManagement/bufferManager.js.map +1 -1
- package/lib/module/types/size.js +2 -0
- package/lib/module/types/typeUtils.js +120 -75
- package/lib/module/types/typeUtils.js.map +1 -1
- package/lib/module/types/vector.js +2 -0
- package/lib/module/utils/vector.js +6 -6
- package/lib/typescript/src/components/Content.d.ts +11 -8
- 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/colorHighlightPresets.d.ts +12 -0
- package/lib/typescript/src/enums/colorHighlightPresets.d.ts.map +1 -0
- package/lib/typescript/src/enums/effectPresets.d.ts +14 -0
- package/lib/typescript/src/enums/effectPresets.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +2 -0
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/shaders/bindGroupLayouts.d.ts +98 -49
- package/lib/typescript/src/shaders/bindGroupLayouts.d.ts.map +1 -1
- package/lib/typescript/src/shaders/bindGroupUtils.d.ts +41 -48
- package/lib/typescript/src/shaders/bindGroupUtils.d.ts.map +1 -1
- package/lib/typescript/src/shaders/computeShaders/precomputeColorMask.d.ts +5 -0
- package/lib/typescript/src/shaders/computeShaders/precomputeColorMask.d.ts.map +1 -0
- package/lib/typescript/src/shaders/fragmentShaders/colorMaskFragment.d.ts.map +1 -1
- package/lib/typescript/src/shaders/fragmentShaders/glareFragment.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 +3 -4
- package/lib/typescript/src/shaders/pipelineSetups.d.ts.map +1 -1
- package/lib/typescript/src/shaders/resourceManagement/bufferManager.d.ts +5 -3
- package/lib/typescript/src/shaders/resourceManagement/bufferManager.d.ts.map +1 -1
- package/lib/typescript/src/types/typeUtils.d.ts +43 -10
- package/lib/typescript/src/types/typeUtils.d.ts.map +1 -1
- package/lib/typescript/src/types/types.d.ts +31 -4
- package/lib/typescript/src/types/types.d.ts.map +1 -1
- package/package.json +2 -1
- package/src/components/Content.tsx +98 -39
- package/src/components/Shine.tsx +8 -0
- package/src/components/ShineGroup.tsx +16 -8
- package/src/enums/colorHighlightPresets.ts +33 -0
- package/src/enums/effectPresets.ts +11 -0
- package/src/index.tsx +2 -0
- package/src/shaders/bindGroupLayouts.ts +34 -11
- package/src/shaders/bindGroupUtils.ts +19 -26
- package/src/shaders/computeShaders/precomputeColorMask.ts +29 -0
- package/src/shaders/fragmentShaders/colorMaskFragment.ts +64 -45
- package/src/shaders/fragmentShaders/glareFragment.ts +10 -6
- package/src/shaders/fragmentShaders/holoFragment.ts +5 -5
- package/src/shaders/fragmentShaders/reverseHoloFragment.ts +12 -7
- package/src/shaders/pipelineSetups.ts +15 -6
- package/src/shaders/resourceManagement/bufferManager.ts +8 -3
- package/src/types/typeUtils.ts +134 -82
- package/src/types/types.ts +36 -4
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type PropsWithChildren } from 'react';
|
|
2
2
|
import { type ShineProps } from './Shine';
|
|
3
3
|
type ShineGroupProps = PropsWithChildren<Partial<ShineProps>>;
|
|
4
|
-
export declare function ShineGroup({ children, glareOptions,
|
|
4
|
+
export declare function ShineGroup({ children, glareOptions, highlightColors, maskURI, lightPosition: touchPosition, effects, enableGlare, isHighlightInclusive, translateViewIn3d, containerStyle, style, }: ShineGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
export {};
|
|
6
6
|
//# sourceMappingURL=ShineGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShineGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ShineGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAW5E,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,KAAK,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9D,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"ShineGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/ShineGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAA+B,MAAM,OAAO,CAAC;AAW5E,OAAO,EAAS,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAEjD,KAAK,eAAe,GAAG,iBAAiB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC;AAE9D,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EACZ,eAAe,EACf,OAAO,EACP,aAAa,EAAE,aAAa,EAC5B,OAAO,EACP,WAAkB,EAClB,oBAA2B,EAC3B,iBAAyB,EACzB,cAAc,EACd,KAAK,GACN,EAAE,eAAe,2CAoEjB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ColorPresets } from './colorPresets';
|
|
2
|
+
import { type ColorMask, type vec3 } from '../types/types';
|
|
3
|
+
type ColorHighlightPresetMap = {
|
|
4
|
+
readonly [K in keyof typeof ColorPresets]: ColorMask;
|
|
5
|
+
};
|
|
6
|
+
export declare const ColorHighlightPresets: ColorHighlightPresetMap;
|
|
7
|
+
export declare const createHighlightColor: (rgb: vec3, useHSV?: boolean, hueToleranceRange?: {
|
|
8
|
+
upper: number;
|
|
9
|
+
lower: number;
|
|
10
|
+
}) => ColorMask;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=colorHighlightPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"colorHighlightPresets.d.ts","sourceRoot":"","sources":["../../../../src/enums/colorHighlightPresets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3D,KAAK,uBAAuB,GAAG;IAC7B,QAAQ,EAAE,CAAC,IAAI,MAAM,OAAO,YAAY,GAAG,SAAS;CACrD,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAa7B,uBAAuB,CAAC;AAE7B,eAAO,MAAM,oBAAoB,GAC/B,KAAK,IAAI,EACT,SAAQ,OAAc,EACtB,oBAAmB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAA6B,KAMzE,SACN,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const Effects: {
|
|
2
|
+
readonly REVERSE_HOLO: {
|
|
3
|
+
readonly name: "reverseHolo";
|
|
4
|
+
readonly options: {
|
|
5
|
+
readonly redChannel: 1;
|
|
6
|
+
readonly greenChannel: 0;
|
|
7
|
+
readonly blueChannel: 0;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
readonly HOLO: {
|
|
11
|
+
readonly name: "holo";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=effectPresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"effectPresets.d.ts","sourceRoot":"","sources":["../../../../src/enums/effectPresets.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,OAAO;;;;;;;;;;;;CAQuB,CAAC"}
|
|
@@ -7,4 +7,6 @@ export type { ShineProps } from './components/Shine';
|
|
|
7
7
|
export * from './utils/vector';
|
|
8
8
|
export type { V2d, V3d } from './types/vector';
|
|
9
9
|
export * from './enums/colorPresets';
|
|
10
|
+
export * from './enums/effectPresets';
|
|
11
|
+
export * from './enums/colorHighlightPresets';
|
|
10
12
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,cAAc,GACf,CAAC;AACF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC/C,cAAc,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EACL,sBAAsB,EACtB,eAAe,EACf,4BAA4B,EAC7B,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACtB,eAAe,EACf,cAAc,GACf,CAAC;AACF,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,cAAc,gBAAgB,CAAC;AAC/B,YAAY,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC/C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import * as d from 'typegpu/data';
|
|
2
2
|
export declare const textureBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
3
|
-
texture:
|
|
3
|
+
texture: {
|
|
4
|
+
texture: d.WgslTexture2d<d.F32>;
|
|
5
|
+
};
|
|
4
6
|
sampler: {
|
|
5
7
|
sampler: "filtering";
|
|
6
8
|
};
|
|
7
9
|
}>;
|
|
8
10
|
export declare const maskTextureBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
9
|
-
texture:
|
|
11
|
+
texture: {
|
|
12
|
+
texture: d.WgslTexture2d<d.F32>;
|
|
13
|
+
};
|
|
10
14
|
sampler: {
|
|
11
15
|
sampler: "filtering";
|
|
12
16
|
};
|
|
@@ -17,10 +21,12 @@ export declare const rotationBindGroupLayout: import("typegpu").TgpuBindGroupLay
|
|
|
17
21
|
};
|
|
18
22
|
}>;
|
|
19
23
|
export declare const glareSchema: d.WgslStruct<{
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
glareColor: d.WgslStruct<{
|
|
25
|
+
hueShiftAngleMax: d.F32;
|
|
26
|
+
hueShiftAngleMin: d.F32;
|
|
27
|
+
hueBlendPower: d.F32;
|
|
28
|
+
}>;
|
|
29
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
24
30
|
lightIntensity: d.F32;
|
|
25
31
|
glareIntensity: d.F32;
|
|
26
32
|
}>;
|
|
@@ -28,10 +34,12 @@ export type GlareSchema = typeof glareSchema;
|
|
|
28
34
|
export declare const glareBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
29
35
|
glareOptions: {
|
|
30
36
|
uniform: d.WgslStruct<{
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
glareColor: d.WgslStruct<{
|
|
38
|
+
hueShiftAngleMax: d.F32;
|
|
39
|
+
hueShiftAngleMin: d.F32;
|
|
40
|
+
hueBlendPower: d.F32;
|
|
41
|
+
}>;
|
|
42
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
35
43
|
lightIntensity: d.F32;
|
|
36
44
|
glareIntensity: d.F32;
|
|
37
45
|
}>;
|
|
@@ -55,24 +63,51 @@ export declare const colorMaskSchema: d.WgslStruct<{
|
|
|
55
63
|
debugMode: d.U32;
|
|
56
64
|
}>;
|
|
57
65
|
export type ColorMaskSchema = typeof colorMaskSchema;
|
|
66
|
+
export declare const COLOR_MASK_MAX_COUNT = 16;
|
|
67
|
+
export declare const colorMaskArraySchema: d.WgslStruct<{
|
|
68
|
+
masks: d.WgslArray<d.WgslStruct<{
|
|
69
|
+
baseColor: d.Vec3f;
|
|
70
|
+
rgbToleranceRange: d.WgslStruct<{
|
|
71
|
+
upper: d.Vec3f;
|
|
72
|
+
lower: d.Vec3f;
|
|
73
|
+
}>;
|
|
74
|
+
hueToleranceRange: d.WgslStruct<{
|
|
75
|
+
upper: d.F32;
|
|
76
|
+
lower: d.F32;
|
|
77
|
+
}>;
|
|
78
|
+
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
79
|
+
brightnessTolerance: d.F32;
|
|
80
|
+
saturationTolerance: d.F32;
|
|
81
|
+
lowSaturationThreshold: d.F32;
|
|
82
|
+
lowBrightnessThreshold: d.F32;
|
|
83
|
+
debugMode: d.U32;
|
|
84
|
+
}>>;
|
|
85
|
+
usedMaskCount: d.I32;
|
|
86
|
+
reverseHighlight: d.I32;
|
|
87
|
+
}>;
|
|
88
|
+
export type ColorMaskArraySchema = typeof colorMaskArraySchema;
|
|
58
89
|
export declare const colorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
59
|
-
|
|
90
|
+
colorMasks: {
|
|
60
91
|
uniform: d.WgslStruct<{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
92
|
+
masks: d.WgslArray<d.WgslStruct<{
|
|
93
|
+
baseColor: d.Vec3f;
|
|
94
|
+
rgbToleranceRange: d.WgslStruct<{
|
|
95
|
+
upper: d.Vec3f;
|
|
96
|
+
lower: d.Vec3f;
|
|
97
|
+
}>;
|
|
98
|
+
hueToleranceRange: d.WgslStruct<{
|
|
99
|
+
upper: d.F32;
|
|
100
|
+
lower: d.F32;
|
|
101
|
+
}>;
|
|
102
|
+
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
103
|
+
brightnessTolerance: d.F32;
|
|
104
|
+
saturationTolerance: d.F32;
|
|
105
|
+
lowSaturationThreshold: d.F32;
|
|
106
|
+
lowBrightnessThreshold: d.F32;
|
|
107
|
+
debugMode: d.U32;
|
|
108
|
+
}>>;
|
|
109
|
+
usedMaskCount: d.I32;
|
|
110
|
+
reverseHighlight: d.I32;
|
|
76
111
|
}>;
|
|
77
112
|
};
|
|
78
113
|
}>;
|
|
@@ -98,15 +133,23 @@ export declare const reverseHoloDetectionChannelFlagsBindGroupLayout: import("ty
|
|
|
98
133
|
};
|
|
99
134
|
glareOptions: {
|
|
100
135
|
uniform: d.WgslStruct<{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
136
|
+
glareColor: d.WgslStruct<{
|
|
137
|
+
hueShiftAngleMax: d.F32;
|
|
138
|
+
hueShiftAngleMin: d.F32;
|
|
139
|
+
hueBlendPower: d.F32;
|
|
140
|
+
}>;
|
|
141
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
105
142
|
lightIntensity: d.F32;
|
|
106
143
|
glareIntensity: d.F32;
|
|
107
144
|
}>;
|
|
108
145
|
};
|
|
109
146
|
}>;
|
|
147
|
+
export declare const precomputeColorMaskBindGroupLayout: import("typegpu").TgpuBindGroupLayout<{
|
|
148
|
+
colorMaskTextureDst: {
|
|
149
|
+
storageTexture: d.WgslStorageTexture2d<"rgba8unorm", "read-write">;
|
|
150
|
+
};
|
|
151
|
+
}>;
|
|
152
|
+
export type BufferSchemas = d.Vec3f | ReverseHoloDetectionChannelFlagsSchema | ColorMaskArraySchema | GlareSchema;
|
|
110
153
|
export declare const bufferData: {
|
|
111
154
|
readonly rotation: {
|
|
112
155
|
readonly schema: d.Vec3f;
|
|
@@ -114,10 +157,12 @@ export declare const bufferData: {
|
|
|
114
157
|
};
|
|
115
158
|
readonly glare: {
|
|
116
159
|
readonly schema: d.WgslStruct<{
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
160
|
+
glareColor: d.WgslStruct<{
|
|
161
|
+
hueShiftAngleMax: d.F32;
|
|
162
|
+
hueShiftAngleMin: d.F32;
|
|
163
|
+
hueBlendPower: d.F32;
|
|
164
|
+
}>;
|
|
165
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
121
166
|
lightIntensity: d.F32;
|
|
122
167
|
glareIntensity: d.F32;
|
|
123
168
|
}>;
|
|
@@ -125,21 +170,25 @@ export declare const bufferData: {
|
|
|
125
170
|
};
|
|
126
171
|
readonly colorMask: {
|
|
127
172
|
readonly schema: d.WgslStruct<{
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
173
|
+
masks: d.WgslArray<d.WgslStruct<{
|
|
174
|
+
baseColor: d.Vec3f;
|
|
175
|
+
rgbToleranceRange: d.WgslStruct<{
|
|
176
|
+
upper: d.Vec3f;
|
|
177
|
+
lower: d.Vec3f;
|
|
178
|
+
}>;
|
|
179
|
+
hueToleranceRange: d.WgslStruct<{
|
|
180
|
+
upper: d.F32;
|
|
181
|
+
lower: d.F32;
|
|
182
|
+
}>;
|
|
183
|
+
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
184
|
+
brightnessTolerance: d.F32;
|
|
185
|
+
saturationTolerance: d.F32;
|
|
186
|
+
lowSaturationThreshold: d.F32;
|
|
187
|
+
lowBrightnessThreshold: d.F32;
|
|
188
|
+
debugMode: d.U32;
|
|
189
|
+
}>>;
|
|
190
|
+
usedMaskCount: d.I32;
|
|
191
|
+
reverseHighlight: d.I32;
|
|
143
192
|
}>;
|
|
144
193
|
readonly usage: "uniform";
|
|
145
194
|
};
|
|
@@ -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,sBAAsB
|
|
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,sBAAsB;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;EAGrC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;EAElC,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;;;;;;;;;;;;;;;;EAgB1B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AAErD,eAAO,MAAM,oBAAoB,KAAK,CAAC;AAEvC,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,kCAAkC;;;;EAI7C,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type TgpuBuffer, type TgpuRoot, type UniformFlag } from 'typegpu';
|
|
2
2
|
import * as d from 'typegpu/data';
|
|
3
|
-
import { type
|
|
4
|
-
import type { GlareOptions
|
|
3
|
+
import { type GlareSchema, type ReverseHoloDetectionChannelFlagsSchema, type ColorMaskArraySchema } from './bindGroupLayouts';
|
|
4
|
+
import type { GlareOptions } from '../types/types';
|
|
5
5
|
export declare const createRotationBuffer: (root: TgpuRoot, initValues?: {
|
|
6
6
|
x: number;
|
|
7
7
|
y: number;
|
|
@@ -13,60 +13,51 @@ export declare const createRotationValuesBindGroup: (root: TgpuRoot, buffer: Tgp
|
|
|
13
13
|
};
|
|
14
14
|
}>;
|
|
15
15
|
export declare const createGlareOptionsBuffer: (root: TgpuRoot, initValues?: Partial<GlareOptions>) => TgpuBuffer<d.WgslStruct<{
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
glareColor: d.WgslStruct<{
|
|
17
|
+
hueShiftAngleMax: d.F32;
|
|
18
|
+
hueShiftAngleMin: d.F32;
|
|
19
|
+
hueBlendPower: d.F32;
|
|
20
|
+
}>;
|
|
21
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
20
22
|
lightIntensity: d.F32;
|
|
21
23
|
glareIntensity: d.F32;
|
|
22
24
|
}>> & UniformFlag;
|
|
23
25
|
export declare const createGlareBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<GlareSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
|
|
24
26
|
glareOptions: {
|
|
25
27
|
uniform: d.WgslStruct<{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
glareColor: d.WgslStruct<{
|
|
29
|
+
hueShiftAngleMax: d.F32;
|
|
30
|
+
hueShiftAngleMin: d.F32;
|
|
31
|
+
hueBlendPower: d.F32;
|
|
32
|
+
}>;
|
|
33
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
30
34
|
lightIntensity: d.F32;
|
|
31
35
|
glareIntensity: d.F32;
|
|
32
36
|
}>;
|
|
33
37
|
};
|
|
34
38
|
}>;
|
|
35
|
-
export declare const
|
|
36
|
-
|
|
37
|
-
rgbToleranceRange: d.WgslStruct<{
|
|
38
|
-
upper: d.Vec3f;
|
|
39
|
-
lower: d.Vec3f;
|
|
40
|
-
}>;
|
|
41
|
-
hueToleranceRange: d.WgslStruct<{
|
|
42
|
-
upper: d.F32;
|
|
43
|
-
lower: d.F32;
|
|
44
|
-
}>;
|
|
45
|
-
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
46
|
-
brightnessTolerance: d.F32;
|
|
47
|
-
saturationTolerance: d.F32;
|
|
48
|
-
lowSaturationThreshold: d.F32;
|
|
49
|
-
lowBrightnessThreshold: d.F32;
|
|
50
|
-
debugMode: d.U32;
|
|
51
|
-
}>> & UniformFlag;
|
|
52
|
-
export declare const createColorMaskBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<ColorMaskSchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
|
|
53
|
-
mask: {
|
|
39
|
+
export declare const createColorMaskBindGroup: (root: TgpuRoot, buffer: TgpuBuffer<ColorMaskArraySchema> & UniformFlag) => import("typegpu").TgpuBindGroup<{
|
|
40
|
+
colorMasks: {
|
|
54
41
|
uniform: d.WgslStruct<{
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
42
|
+
masks: d.WgslArray<d.WgslStruct<{
|
|
43
|
+
baseColor: d.Vec3f;
|
|
44
|
+
rgbToleranceRange: d.WgslStruct<{
|
|
45
|
+
upper: d.Vec3f;
|
|
46
|
+
lower: d.Vec3f;
|
|
47
|
+
}>;
|
|
48
|
+
hueToleranceRange: d.WgslStruct<{
|
|
49
|
+
upper: d.F32;
|
|
50
|
+
lower: d.F32;
|
|
51
|
+
}>;
|
|
52
|
+
useHSV: d.Decorated<d.U32, [d.Align<16>]>;
|
|
53
|
+
brightnessTolerance: d.F32;
|
|
54
|
+
saturationTolerance: d.F32;
|
|
55
|
+
lowSaturationThreshold: d.F32;
|
|
56
|
+
lowBrightnessThreshold: d.F32;
|
|
57
|
+
debugMode: d.U32;
|
|
58
|
+
}>>;
|
|
59
|
+
usedMaskCount: d.I32;
|
|
60
|
+
reverseHighlight: d.I32;
|
|
70
61
|
}>;
|
|
71
62
|
};
|
|
72
63
|
}>;
|
|
@@ -83,10 +74,12 @@ export declare const createReverseHoloDetectionChannelFlagsBindGroup: (root: Tgp
|
|
|
83
74
|
};
|
|
84
75
|
glareOptions: {
|
|
85
76
|
uniform: d.WgslStruct<{
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
77
|
+
glareColor: d.WgslStruct<{
|
|
78
|
+
hueShiftAngleMax: d.F32;
|
|
79
|
+
hueShiftAngleMin: d.F32;
|
|
80
|
+
hueBlendPower: d.F32;
|
|
81
|
+
}>;
|
|
82
|
+
glowPower: d.Decorated<d.F32, [d.Align<16>]>;
|
|
90
83
|
lightIntensity: d.F32;
|
|
91
84
|
glareIntensity: d.F32;
|
|
92
85
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bindGroupUtils.d.ts","sourceRoot":"","sources":["../../../../src/shaders/bindGroupUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EA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;EAKvD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"precomputeColorMask.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/computeShaders/precomputeColorMask.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAOlC,eAAO,MAAM,mBAAmB;;EAoB9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colorMaskFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/colorMaskFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"colorMaskFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/colorMaskFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AASlC,QAAA,MAAM,iBAAiB;;WA4FrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"glareFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/glareFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"glareFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/glareFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,aAAa;;WAuExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;WA4D3B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverseHoloFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/reverseHoloFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,mBAAmB;;
|
|
1
|
+
{"version":3,"file":"reverseHoloFragment.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/fragmentShaders/reverseHoloFragment.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAUlC,eAAO,MAAM,mBAAmB;;WA6F9B,CAAC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import type { TgpuBindGroup, TgpuRenderPipeline, TgpuRoot, TgpuTexture } from 'typegpu';
|
|
1
|
+
import type { TgpuBindGroup, TgpuComputePipeline, TgpuRenderPipeline, TgpuRoot, TgpuTexture } from 'typegpu';
|
|
2
2
|
import type { BindGroupPair } from '../types/types';
|
|
3
|
-
export declare
|
|
4
|
-
|
|
5
|
-
}>;
|
|
3
|
+
export declare function attachBindGroups(pipeline: TgpuRenderPipeline, bindGroups: TgpuBindGroup[]): TgpuRenderPipeline;
|
|
4
|
+
export declare function attachBindGroups(pipeline: TgpuComputePipeline, bindGroups: TgpuBindGroup[]): TgpuComputePipeline;
|
|
6
5
|
export declare const blend: GPUBlendState;
|
|
7
6
|
export declare const getDefaultTarget: (presentationFormat: GPUTextureFormat, blendMode?: GPUBlendState) => GPUColorTargetState;
|
|
8
7
|
export declare const attachBindGroupsToPass: (pass: any, bindGroupPairs: BindGroupPair[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineSetups.d.ts","sourceRoot":"","sources":["../../../../src/shaders/pipelineSetups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,kBAAkB,EAClB,QAAQ,EACR,WAAW,EACZ,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAepD,
|
|
1
|
+
{"version":3,"file":"pipelineSetups.d.ts","sourceRoot":"","sources":["../../../../src/shaders/pipelineSetups.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,mBAAmB,EACn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
|
+
import { type BufferSchemas } from './../bindGroupLayouts';
|
|
1
2
|
import type { TgpuRoot, TgpuBuffer, ValidateBufferSchema } from 'typegpu';
|
|
3
|
+
import type { Infer } from 'typegpu/data';
|
|
2
4
|
export type BufferUsageType = 'uniform' | 'storage' | 'vertex';
|
|
3
5
|
type BufferWithUsageFromEntry<TEntry extends {
|
|
4
|
-
schema: ValidateBufferSchema<
|
|
6
|
+
schema: ValidateBufferSchema<BufferSchemas>;
|
|
5
7
|
usage: BufferUsageType;
|
|
6
8
|
}> = TEntry['usage'] extends 'uniform' ? TgpuBuffer<TEntry['schema']> & {
|
|
7
9
|
usableAsUniform: true;
|
|
@@ -11,7 +13,7 @@ type BufferWithUsageFromEntry<TEntry extends {
|
|
|
11
13
|
usableAsVertex: true;
|
|
12
14
|
} : never;
|
|
13
15
|
export declare class TypedBufferMap<TSchemas extends Record<string, {
|
|
14
|
-
schema: ValidateBufferSchema<
|
|
16
|
+
schema: ValidateBufferSchema<BufferSchemas>;
|
|
15
17
|
usage: BufferUsageType;
|
|
16
18
|
}>> {
|
|
17
19
|
private schemas;
|
|
@@ -19,7 +21,7 @@ export declare class TypedBufferMap<TSchemas extends Record<string, {
|
|
|
19
21
|
constructor(schemas: TSchemas);
|
|
20
22
|
set<K extends keyof TSchemas>(key: K, buffer: BufferWithUsageFromEntry<TSchemas[K]>): void;
|
|
21
23
|
get<K extends keyof TSchemas>(key: K): BufferWithUsageFromEntry<TSchemas[K]> | undefined;
|
|
22
|
-
addBuffer<K extends keyof TSchemas>(root: TgpuRoot, key: K, initValues?: TSchemas[K]['schema']
|
|
24
|
+
addBuffer<K extends keyof TSchemas>(root: TgpuRoot, key: K, initValues?: Infer<TSchemas[K]['schema']>): BufferWithUsageFromEntry<TSchemas[K]>;
|
|
23
25
|
keys(): (keyof TSchemas)[];
|
|
24
26
|
has<K extends keyof TSchemas>(key: K): boolean;
|
|
25
27
|
delete<K extends keyof TSchemas>(key: K): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bufferManager.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/resourceManagement/bufferManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"bufferManager.d.ts","sourceRoot":"","sources":["../../../../../src/shaders/resourceManagement/bufferManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,MAAM,eAAe,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/D,KAAK,wBAAwB,CAC3B,MAAM,SAAS;IACb,MAAM,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAC5C,KAAK,EAAE,eAAe,CAAC;CACxB,IACC,MAAM,CAAC,OAAO,CAAC,SAAS,SAAS,GACjC,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG;IAAE,eAAe,EAAE,IAAI,CAAA;CAAE,GACxD,MAAM,CAAC,OAAO,CAAC,SAAS,SAAS,GAC/B,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG;IAAE,eAAe,EAAE,IAAI,CAAA;CAAE,GACxD,MAAM,CAAC,OAAO,CAAC,SAAS,QAAQ,GAC9B,UAAU,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,GAAG;IAAE,cAAc,EAAE,IAAI,CAAA;CAAE,GACvD,KAAK,CAAC;AAEd,qBAAa,cAAc,CACzB,QAAQ,SAAS,MAAM,CACrB,MAAM,EACN;IAAE,MAAM,EAAE,oBAAoB,CAAC,aAAa,CAAC,CAAC;IAAC,KAAK,EAAE,eAAe,CAAA;CAAE,CACxE;IAMW,OAAO,CAAC,OAAO;IAJ3B,OAAO,CAAC,OAAO,CAER;gBAEa,OAAO,EAAE,QAAQ;IAErC,GAAG,CAAC,CAAC,SAAS,MAAM,QAAQ,EAC1B,GAAG,EAAE,CAAC,EACN,MAAM,EAAE,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAC5C,IAAI;IAIP,GAAG,CAAC,CAAC,SAAS,MAAM,QAAQ,EAC1B,GAAG,EAAE,CAAC,GACL,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;IAIpD,SAAS,CAAC,CAAC,SAAS,MAAM,QAAQ,EAChC,IAAI,EAAE,QAAQ,EACd,GAAG,EAAE,CAAC,EACN,UAAU,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,GACxC,wBAAwB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IA+BxC,IAAI,IAAI,CAAC,MAAM,QAAQ,CAAC,EAAE;IAI1B,GAAG,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,OAAO;IAI9C,MAAM,CAAC,CAAC,SAAS,MAAM,QAAQ,EAAE,GAAG,EAAE,CAAC,GAAG,IAAI;CAO/C"}
|
|
@@ -1,19 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { GlareOptions, ColorMask, DeepPartiallyOptional, HoloOptions, ReverseHoloDetectionChannelFlags } from './types';
|
|
1
|
+
import * as d from 'typegpu/data';
|
|
2
|
+
import type { GlareOptions, ColorMask, DeepPartiallyOptional, vec3, HoloOptions, ReverseHoloDetectionChannelFlags, vec2, vec4 } from './types';
|
|
3
3
|
export declare const createGlareOptions: (options: Partial<GlareOptions>) => GlareOptions;
|
|
4
|
-
export declare const
|
|
5
|
-
|
|
4
|
+
export declare const glareOptionsToTyped: (glareOptions: GlareOptions) => {
|
|
5
|
+
glowPower: number;
|
|
6
|
+
lightIntensity: number;
|
|
7
|
+
glareIntensity: number;
|
|
8
|
+
glareColor: {
|
|
9
|
+
hueShiftAngleMax: number;
|
|
10
|
+
hueShiftAngleMin: number;
|
|
11
|
+
hueBlendPower: number;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare const createColorMasks: (colorMasks: DeepPartiallyOptional<ColorMask, "baseColor">[]) => ColorMask[];
|
|
15
|
+
export declare const colorMasksToTyped: (colorMasks: ColorMask[], reverseHighlight: boolean) => {
|
|
16
|
+
masks: {
|
|
17
|
+
baseColor: d.v3f;
|
|
18
|
+
rgbToleranceRange: {
|
|
19
|
+
upper: d.v3f;
|
|
20
|
+
lower: d.v3f;
|
|
21
|
+
};
|
|
22
|
+
hueToleranceRange: {
|
|
23
|
+
upper: number;
|
|
24
|
+
lower: number;
|
|
25
|
+
};
|
|
26
|
+
useHSV: number;
|
|
27
|
+
brightnessTolerance: number;
|
|
28
|
+
saturationTolerance: number;
|
|
29
|
+
lowSaturationThreshold: number;
|
|
30
|
+
lowBrightnessThreshold: number;
|
|
31
|
+
debugMode: number;
|
|
32
|
+
}[];
|
|
33
|
+
usedMaskCount: number;
|
|
34
|
+
reverseHighlight: number;
|
|
35
|
+
};
|
|
6
36
|
export declare const colorMaskToTyped: (colorMask: ColorMask) => {
|
|
7
|
-
baseColor:
|
|
37
|
+
baseColor: d.v3f;
|
|
8
38
|
rgbToleranceRange: {
|
|
9
|
-
upper:
|
|
10
|
-
lower:
|
|
39
|
+
upper: d.v3f;
|
|
40
|
+
lower: d.v3f;
|
|
11
41
|
};
|
|
12
|
-
useHSV: number;
|
|
13
42
|
hueToleranceRange: {
|
|
14
|
-
lower: number;
|
|
15
43
|
upper: number;
|
|
44
|
+
lower: number;
|
|
16
45
|
};
|
|
46
|
+
useHSV: number;
|
|
17
47
|
brightnessTolerance: number;
|
|
18
48
|
saturationTolerance: number;
|
|
19
49
|
lowSaturationThreshold: number;
|
|
@@ -29,5 +59,8 @@ export declare const createReverseHoloDetectionChannelFlags: (options?: Partial<
|
|
|
29
59
|
saturation: number;
|
|
30
60
|
value: number;
|
|
31
61
|
};
|
|
32
|
-
export declare
|
|
62
|
+
export declare function numberArrToTyped(vec: vec2): d.v2f;
|
|
63
|
+
export declare function numberArrToTyped(vec: vec3): d.v3f;
|
|
64
|
+
export declare function numberArrToTyped(vec: vec4): d.v4f;
|
|
65
|
+
export declare function numberArrToTyped(vec: number[]): d.v2f | d.v3f | d.v4f;
|
|
33
66
|
//# sourceMappingURL=typeUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../../../src/types/typeUtils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typeUtils.d.ts","sourceRoot":"","sources":["../../../../src/types/typeUtils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAClC,OAAO,KAAK,EACV,YAAY,EACZ,SAAS,EACT,qBAAqB,EACrB,IAAI,EACJ,WAAW,EACX,gCAAgC,EAChC,IAAI,EACJ,IAAI,EACL,MAAM,SAAS,CAAC;AASjB,eAAO,MAAM,kBAAkB,GAC7B,SAAS,OAAO,CAAC,YAAY,CAAC,KAC7B,YAiBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,cAAc,YAAY;;;;;;;;;CAW7D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,YAAY,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE,KAC1D,SAAS,EA2CX,CAAC;AA2BF,eAAO,MAAM,iBAAiB,GAC5B,YAAY,SAAS,EAAE,EACvB,kBAAkB,OAAO;;;;;;;;;;;;;;;;;;;;CAU1B,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,WAAW,SAAS;;;;;;;;;;;;;;;;CAoBpD,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,SAAS,OAAO,CAAC,WAAW,CAAC,K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