1//! Curated Fusion 21.1 parameter schemas: the layout for tools the introspected catalog lacks.
2
3#[derive(Clone, Copy, Debug, PartialEq)]
4pub enum ParamKind {
5 Float { min: f64, max: f64, default: f64, step: f64 },
6 Vec2 { min: f64, max: f64, default: [f64; 2] },
7 Bool { default: bool },
8 Enum { options: &'static [&'static str], default: &'static str },
9 IntEnum { options: &'static [(i32, &'static str)], default: i32 },
10 Color {
11 r: &'static str,
12 g: &'static str,
13 b: &'static str,
14 a: Option<&'static str>,
15 default: [f64; 4],
16 },
17 Text { default: &'static str },
18}
19
20#[derive(Clone, Copy, Debug)]
21pub struct ParamSpec {
22 pub name: &'static str,
23 pub label: &'static str,
24 pub kind: ParamKind,
25}
26
27pub fn infer_float_range(name: &str, val: f64) -> (f64, f64) {
28 let lower = name.to_ascii_lowercase();
29 if lower.contains("angle") || lower.contains("rotate") {
30 (-360.0, 360.0)
31 } else if lower.contains("width") || lower.contains("height") {
32 if val > 2.0 {
33 (1.0, (val * 2.0).max(4096.0))
34 } else {
35 (0.0, 2.0)
36 }
37 } else if lower.contains("blend") || lower.contains("alpha") || lower.contains("opacity") {
38 (0.0, 1.0)
39 } else if lower.contains("size") || lower.contains("blur") || lower.contains("glow") {
40 (0.0, (val.abs() * 2.0).max(50.0))
41 } else if val < 0.0 || val > 1.0 {
42 let hi = (val.abs() * 2.0).max(10.0);
43 (-hi, hi)
44 } else {
45 (0.0, 1.0)
46 }
47}
48
49const APPLY_MODES: &[&str] = &[
50 "Normal", "Screen", "Multiply", "Overlay", "Soft Light", "Hard Light",
51 "Color Dodge", "LinearDodge", "Color Burn", "LinearBurn", "Darken", "Lighten",
52 "Difference", "Exclusion", "LinearLight", "VividLight", "PinLight",
53 "DarkerColor", "LighterColor", "Hypotenuse", "Geometric",
54 "Hue", "Saturation", "Color", "Luminosity",
55];
56const MERGE_OPERATORS: &[&str] = &["Over", "Under", "In", "Held Out", "Atop", "XOr"];
57const BLUR_FILTERS: &[&str] = &["Fast Gaussian", "Gaussian", "Box"];
58const GLOW_FILTERS: &[&str] = &["Gaussian", "Fast Gaussian", "Box"];
59const CLIPPING_MODES: &[&str] = &["Frame", "Domain", "None"];
60const PAINT_MODES: &[&str] = &["Merge", "Add", "Subtract", "Multiply", "Minimum", "Maximum", "Invert", "Replace", "Average"];
61const GAMUT_SPACES: &[&str] = &["NoChange", "sRGB", "Rec709"];
62const MONTHS: &[&str] = &[
63 "January", "February", "March", "April", "May", "June",
64 "July", "August", "September", "October", "November", "December",
65];
66const SHAPE3D_TYPES: &[&str] = &[
67 "SurfacePlaneInputs", "SurfaceSphereInputs", "SurfaceCubeInputs", "SurfaceCylinderInputs",
68];
69const GATE_FITS: &[&str] = &["Inside", "Width", "Height", "Outside", "Stretch"];
70const MASK_CHANNELS: &[&str] = &[
71 "Alpha", "Luminance", "Red", "Green", "Blue", "Saturation", "Lightness", "Hue",
72];
73
74const EDGES_INT: &[(i32, &str)] = &[(0, "Canvas"), (1, "Wrap"), (2, "Duplicate"), (3, "Mirror")];
75const CB_OPS: &[(i32, &str)] = &[
76 (0, "Copy"), (1, "Add"), (2, "Subtract"), (3, "And"), (4, "Or"), (5, "Exclusive Or"), (6, "Multiply"), (7, "Divide"),
77 (8, "Maximum"), (9, "Minimum"), (10, "Negative"), (11, "Solid"), (12, "Clear"), (13, "Difference"),
78 (14, "Signed Add"),
79];
80const CB_CHANNELS: &[(i32, &str)] = &[
81 (0, "Red FG"), (1, "Green FG"), (2, "Blue FG"), (3, "Alpha FG"), (4, "Do Nothing"),
82 (5, "Red BG"), (6, "Green BG"), (7, "Blue BG"), (8, "Alpha BG"),
83 (9, "Hue FG"), (10, "Lum FG"), (11, "Sat FG"),
84 (12, "Hue BG"), (13, "Lum BG"), (14, "Sat BG"), (15, "Black"), (16, "White"),
85];
86const DECAY_TYPES: &[(i32, &str)] = &[(0, "No Decay"), (1, "Linear"), (2, "Quadratic")];
87const JOIN_STYLES: &[(i32, &str)] = &[(0, "Bevel"), (1, "Round"), (2, "Miter")];
88const CAP_STYLES: &[(i32, &str)] = &[(0, "Butt"), (1, "Round"), (2, "Square")];
89
90const fn flt(name: &'static str, label: &'static str, min: f64, max: f64, default: f64) -> ParamSpec {
91 ParamSpec { name, label, kind: ParamKind::Float { min, max, default, step: 0.01 } }
92}
93
94const fn v2(name: &'static str, label: &'static str, min: f64, max: f64, default: [f64; 2]) -> ParamSpec {
95 ParamSpec { name, label, kind: ParamKind::Vec2 { min, max, default } }
96}
97
98const fn boolean(name: &'static str, label: &'static str, default: bool) -> ParamSpec {
99 ParamSpec { name, label, kind: ParamKind::Bool { default } }
100}
101
102const fn fuid(name: &'static str, label: &'static str, options: &'static [&'static str], default: &'static str) -> ParamSpec {
103 ParamSpec { name, label, kind: ParamKind::Enum { options, default } }
104}
105
106const fn int_enum(name: &'static str, label: &'static str, options: &'static [(i32, &'static str)], default: i32) -> ParamSpec {
107 ParamSpec { name, label, kind: ParamKind::IntEnum { options, default } }
108}
109
110const fn text(name: &'static str, label: &'static str, default: &'static str) -> ParamSpec {
111 ParamSpec { name, label, kind: ParamKind::Text { default } }
112}
113
114const fn rgba(
115 name: &'static str,
116 label: &'static str,
117 r: &'static str,
118 g: &'static str,
119 b: &'static str,
120 a: Option<&'static str>,
121 default: [f64; 4],
122) -> ParamSpec {
123 ParamSpec { name, label, kind: ParamKind::Color { r, g, b, a, default } }
124}
125
126/// All tool kinds with curated Inspector schemas.
127#[cfg(test)]
128pub const CURATED_TOOL_KINDS: &[&str] = &[
129 // Composite & Routing
130 "Merge", "Dissolve", "ChannelBoolean", "Shadow", "Switch", "Fuse.Switch",
131 // Transform & Warp
132 "Transform", "Displace", "Vortex", "Drip", "Dent", "GridWarp", "PerspectivePositioner",
133 // Blur, Glow & Film
134 "Blur", "DirectionalBlur", "VariBlur", "Glow", "SoftGlow", "Sharpen", "ErodeDilate", "FilmGrain",
135 // Color & Keying
136 "BrightnessContrast", "ColorCorrector", "ColorGain", "HueCurves", "GamutConvert", "UltraKeyer", "Custom",
137 // Generators & I/O
138 "Background", "FastNoise", "DaySky", "TextPlus", "Loader", "Saver", "TimeStretcher", "TimeSpeed",
139 // Paint & Masks
140 "Paint", "PaintMask", "EllipseMask", "RectangleMask", "BitmapMask", "WandMask",
141 // Vector Shapes
142 "sRender", "sEllipse", "sRectangle", "sNGon", "sBoolean", "sTransform", "sOutline", "sGrid",
143 // 3D Scene, Lights & Materials
144 "Camera3D", "Shape3D", "Cube3D", "SurfaceFBXMesh",
145 "LightPoint", "LightSpot", "LightDirectional", "LightAmbient",
146 "MtlBlinn", "MtlPhong", "MtlCookTorrance",
147];
148
149/// Curated Fusion 21.1 parameter schemas for major compositor tools.
150pub fn schema_for_kind(kind: &str) -> &'static [ParamSpec] {
151 match kind {
152 // --- Composite & Routing ---
153 "Merge" => const { &[
154 fuid("ApplyMode", "Apply Mode", APPLY_MODES, "Normal"),
155 fuid("Operator", "Operator", MERGE_OPERATORS, "Over"),
156 flt("SubtractiveAdditive", "Sub / Add", 0.0, 1.0, 1.0),
157 flt("Gain", "Alpha Gain", 0.0, 1.0, 1.0),
158 flt("BurnIn", "Burn In", 0.0, 1.0, 0.0),
159 v2("Center", "Center", -1.0, 2.0, [0.5, 0.5]),
160 flt("Size", "Size", 0.0, 5.0, 1.0),
161 flt("Angle", "Angle", -360.0, 360.0, 0.0),
162 boolean("FlipHoriz", "Flip Horiz", false),
163 boolean("FlipVert", "Flip Vert", false),
164 int_enum("Edges", "Edges", EDGES_INT, 0),
165 boolean("MultiplyByMask", "Mult by Mask", false),
166 flt("Blend", "Blend", 0.0, 1.0, 1.0),
167 ] },
168 "Dissolve" => const { &[
169 flt("Mix", "Mix", 0.0, 1.0, 0.5),
170 boolean("MultiplyByMask", "Mult by Mask", false),
171 flt("Blend", "Blend", 0.0, 1.0, 1.0),
172 ] },
173 "ChannelBoolean" => const { &[
174 int_enum("Operation", "Operation", CB_OPS, 0),
175 int_enum("ToRed", "To Red", CB_CHANNELS, 0),
176 int_enum("ToGreen", "To Green", CB_CHANNELS, 1),
177 int_enum("ToBlue", "To Blue", CB_CHANNELS, 2),
178 int_enum("ToAlpha", "To Alpha", CB_CHANNELS, 3),
179 flt("Blend", "Blend", 0.0, 1.0, 1.0),
180 ] },
181 "Shadow" => const { &[
182 v2("ShadowOffset", "Offset", -1.0, 2.0, [0.5, 0.5]),
183 flt("Softness", "Softness", 0.0, 0.2, 0.0),
184 rgba("Color", "Color", "Red", "Green", "Blue", Some("Alpha"), [0.0, 0.0, 0.0, 1.0]),
185 int_enum("Output", "Output", &[(0, "Normal"), (1, "Shadow Only")], 0),
186 flt("Blend", "Blend", 0.0, 1.0, 1.0),
187 ] },
188 "Switch" => const { &[
189 flt("Source", "Source", 0.0, 16.0, 0.0),
190 flt("Blend", "Blend", 0.0, 1.0, 1.0),
191 ] },
192 "Fuse.Switch" => const { &[
193 flt("Which", "Which", 1.0, 16.0, 1.0),
194 ] },
195
196 // --- Transform & Warp ---
197 "Transform" => const { &[
198 v2("Center", "Center", -1.0, 2.0, [0.5, 0.5]),
199 v2("Pivot", "Pivot", -1.0, 2.0, [0.5, 0.5]),
200 boolean("UseSizeAndAspect", "Size/Aspect", true),
201 flt("Size", "Size", 0.0, 5.0, 1.0),
202 flt("Aspect", "Aspect", 0.1, 4.0, 1.0),
203 flt("XSize", "X Size", 0.0, 5.0, 1.0),
204 flt("YSize", "Y Size", 0.0, 5.0, 1.0),
205 flt("Angle", "Angle", -360.0, 360.0, 0.0),
206 boolean("FlipHoriz", "Flip Horiz", false),
207 boolean("FlipVert", "Flip Vert", false),
208 boolean("InvertTransform", "Invert", false),
209 int_enum("Edges", "Edges", EDGES_INT, 0),
210 boolean("MultiplyByMask", "Mult by Mask", false),
211 flt("Blend", "Blend", 0.0, 1.0, 1.0),
212 ] },
213 "Displace" => const { &[
214 int_enum("Type", "Type", &[(0, "Radial"), (1, "XY")], 0),
215 flt("RefractionStrength", "Strength", -2.0, 2.0, 0.05),
216 flt("XRefraction", "X Refract", -1.0, 1.0, 0.0),
217 flt("YRefraction", "Y Refract", -1.0, 1.0, 0.0),
218 flt("XOffset", "X Offset", -1.0, 1.0, 0.0),
219 flt("YOffset", "Y Offset", -1.0, 1.0, 0.0),
220 flt("Spread", "Spread", 0.0, 1.0, 0.0),
221 flt("LightPower", "Light Power", -2.0, 2.0, 0.0),
222 flt("LightAngle", "Light Angle", -360.0, 360.0, 0.0),
223 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
224 flt("Blend", "Blend", 0.0, 1.0, 1.0),
225 ] },
226 "Vortex" => const { &[
227 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
228 flt("Size", "Size", 0.01, 2.0, 0.5),
229 flt("Angle", "Angle", -720.0, 720.0, 0.0),
230 flt("Power", "Power", 0.0, 20.0, 5.0),
231 flt("Blend", "Blend", 0.0, 1.0, 1.0),
232 ] },
233 "Drip" => const { &[
234 int_enum("Shape", "Shape", &[(0, "Circle"), (1, "Square"), (2, "Random"), (3, "Horizontal"), (4, "Vertical")], 0),
235 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
236 flt("Amplitude", "Amplitude", -1.0, 1.0, 0.1),
237 flt("Frequency", "Frequency", 0.0, 50.0, 10.0),
238 flt("Aspect", "Aspect", 0.1, 4.0, 1.0),
239 flt("Phase", "Phase", -10.0, 10.0, 0.0),
240 flt("Dampening", "Dampening", 0.0, 5.0, 0.0),
241 flt("Blend", "Blend", 0.0, 1.0, 1.0),
242 ] },
243 "Dent" => const { &[
244 int_enum("Type", "Type", &[(0, "Dent"), (1, "Sine"), (2, "Pinch"), (3, "Punch"), (4, "Cosine")], 0),
245 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
246 flt("Size", "Size", 0.01, 2.0, 0.5),
247 flt("Strength", "Strength", -2.0, 2.0, 0.5),
248 flt("Blend", "Blend", 0.0, 1.0, 1.0),
249 ] },
250 "GridWarp" => const { &[
251 flt("Blend", "Blend", 0.0, 1.0, 1.0),
252 ] },
253 "PerspectivePositioner" => const { &[
254 int_enum("MappingType", "Mapping", &[(0, "Linear"), (1, "Perspective")], 0),
255 v2("TopLeft", "Top Left", -0.5, 1.5, [0.0, 1.0]),
256 v2("TopRight", "Top Right", -0.5, 1.5, [1.0, 1.0]),
257 v2("BottomLeft", "Bottom Left", -0.5, 1.5, [0.0, 0.0]),
258 v2("BottomRight", "Bottom Right", -0.5, 1.5, [1.0, 0.0]),
259 flt("Blend", "Blend", 0.0, 1.0, 1.0),
260 ] },
261
262 // --- Blur, Glow & Film ---
263 "Blur" => const { &[
264 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
265 boolean("LockXY", "Lock X/Y", true),
266 flt("XBlurSize", "Blur Size", 0.0, 100.0, 1.0),
267 flt("YBlurSize", "Y Blur Size", 0.0, 100.0, 1.0),
268 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
269 flt("Blend", "Blend", 0.0, 1.0, 1.0),
270 ] },
271 "DirectionalBlur" => const { &[
272 int_enum("Type", "Type", &[(0, "Linear"), (1, "Radial"), (2, "Centered"), (3, "Zoom")], 0),
273 flt("Length", "Length", -0.5, 0.5, 0.02),
274 flt("Angle", "Angle", -360.0, 360.0, 0.0),
275 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
276 flt("Glow", "Glow", 0.0, 1.0, 0.0),
277 flt("Blend", "Blend", 0.0, 1.0, 1.0),
278 ] },
279 "VariBlur" => const { &[
280 flt("XBlurSize", "Blur Size", 0.0, 100.0, 1.0),
281 flt("YBlurSize", "Y Blur Size", 0.0, 100.0, 1.0),
282 flt("Blend", "Blend", 0.0, 1.0, 1.0),
283 ] },
284 "Glow" => const { &[
285 fuid("Filter", "Filter", GLOW_FILTERS, "Gaussian"),
286 boolean("LockXY", "Lock X/Y", true),
287 flt("XGlowSize", "Glow Size", 0.0, 100.0, 10.0),
288 flt("YGlowSize", "Y Glow Size", 0.0, 100.0, 10.0),
289 flt("Glow", "Glow", 0.0, 1.0, 0.8),
290 flt("RedScale", "Red Scale", 0.0, 5.0, 1.0),
291 flt("GreenScale", "Green Scale", 0.0, 5.0, 1.0),
292 flt("BlueScale", "Blue Scale", 0.0, 5.0, 1.0),
293 flt("AlphaScale", "Alpha Scale", 0.0, 5.0, 1.0),
294 boolean("Alpha", "Alpha", true),
295 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
296 flt("Blend", "Blend", 0.0, 1.0, 1.0),
297 ] },
298 "SoftGlow" => const { &[
299 fuid("Filter", "Filter", GLOW_FILTERS, "Gaussian"),
300 flt("Threshold", "Threshold", 0.0, 1.0, 0.0),
301 flt("Gain", "Gain", 0.0, 5.0, 2.0),
302 boolean("LockXY", "Lock X/Y", true),
303 flt("XGlowSize", "Glow Size", 0.0, 100.0, 10.0),
304 flt("YGlowSize", "Y Glow Size", 0.0, 100.0, 10.0),
305 flt("RedScale", "Red Scale", 0.0, 5.0, 1.0),
306 flt("GreenScale", "Green Scale", 0.0, 5.0, 1.0),
307 flt("BlueScale", "Blue Scale", 0.0, 5.0, 1.0),
308 flt("AlphaScale", "Alpha Scale", 0.0, 5.0, 1.0),
309 boolean("Alpha", "Alpha", true),
310 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
311 flt("Blend", "Blend", 0.0, 1.0, 1.0),
312 ] },
313 "Sharpen" => const { &[
314 boolean("LockAmountXY", "Lock X/Y", true),
315 flt("XAmount", "X Amount", 0.0, 50.0, 1.0),
316 flt("YAmount", "Y Amount", 0.0, 50.0, 1.0),
317 flt("Blend", "Blend", 0.0, 1.0, 1.0),
318 ] },
319 "ErodeDilate" => const { &[
320 int_enum("Filter", "Filter", &[(0, "Box"), (1, "Bartlett"), (2, "Gaussian"), (3, "Circle")], 0),
321 boolean("LockXY", "Lock X/Y", true),
322 flt("XAmount", "X Amount", -0.2, 0.2, 0.0),
323 flt("YAmount", "Y Amount", -0.2, 0.2, 0.0),
324 boolean("Red", "Red", true),
325 boolean("Green", "Green", true),
326 boolean("Blue", "Blue", true),
327 boolean("Alpha", "Alpha", true),
328 flt("Blend", "Blend", 0.0, 1.0, 1.0),
329 ] },
330 "FilmGrain" => const { &[
331 flt("MasterStrength", "Strength", 0.0, 1.0, 0.05),
332 boolean("LockSize", "Lock Size", true),
333 flt("MasterXSize", "Size", 0.1, 10.0, 1.0),
334 flt("MasterYSize", "Y Size", 0.1, 10.0, 1.0),
335 flt("MasterRoughness", "Roughness", 0.0, 1.0, 0.0),
336 boolean("Monochrome", "Monochrome", true),
337 boolean("LogProcessing", "Log Process", true),
338 boolean("TimeLockSeed", "Lock Seed", false),
339 flt("Seed", "Seed", 0.0, 10000.0, 0.0),
340 flt("RedStrength", "Red Str", 0.0, 2.0, 1.0),
341 flt("GreenStrength", "Green Str", 0.0, 2.0, 1.0),
342 flt("BlueStrength", "Blue Str", 0.0, 2.0, 1.0),
343 flt("Blend", "Blend", 0.0, 1.0, 1.0),
344 ] },
345
346 // --- Color & Keying ---
347 "BrightnessContrast" => const { &[
348 flt("Gain", "Gain", 0.0, 5.0, 1.0),
349 flt("Lift", "Lift", -1.0, 1.0, 0.0),
350 flt("Gamma", "Gamma", 0.05, 5.0, 1.0),
351 flt("Contrast", "Contrast", -1.0, 1.0, 0.0),
352 flt("Brightness", "Brightness", -1.0, 1.0, 0.0),
353 flt("Saturation", "Saturation", 0.0, 4.0, 1.0),
354 boolean("PreDividePostMultiply", "Pre-Div/Post", false),
355 boolean("MultiplyByMask", "Mult by Mask", false),
356 flt("Blend", "Blend", 0.0, 1.0, 1.0),
357 ] },
358 "ColorCorrector" => const { &[
359 flt("WheelSaturation1", "Saturation", 0.0, 4.0, 1.0),
360 flt("WheelHue1", "Hue", -1.0, 1.0, 0.0),
361 flt("MasterRGBGain", "Gain", 0.0, 5.0, 1.0),
362 flt("MasterRGBGamma", "Gamma", 0.05, 5.0, 1.0),
363 flt("MasterRGBLift", "Lift", -1.0, 1.0, 0.0),
364 flt("MasterRGBContrast", "Contrast", 0.0, 3.0, 1.0),
365 flt("MasterRGBBrightness", "Brightness", -1.0, 1.0, 0.0),
366 boolean("PreDividePostMultiply", "Pre-Div/Post", false),
367 boolean("MultiplyByMask", "Mult by Mask", false),
368 flt("Blend", "Blend", 0.0, 1.0, 1.0),
369 ] },
370 "ColorGain" => const { &[
371 boolean("LockRGB", "Lock RGB", false),
372 flt("GainRed", "Gain Red", 0.0, 5.0, 1.0),
373 flt("GainGreen", "Gain Green", 0.0, 5.0, 1.0),
374 flt("GainBlue", "Gain Blue", 0.0, 5.0, 1.0),
375 flt("LiftRed", "Lift Red", -1.0, 1.0, 0.0),
376 flt("LiftGreen", "Lift Green", -1.0, 1.0, 0.0),
377 flt("LiftBlue", "Lift Blue", -1.0, 1.0, 0.0),
378 flt("GammaRed", "Gamma Red", 0.05, 5.0, 1.0),
379 flt("GammaGreen", "Gamma Green", 0.05, 5.0, 1.0),
380 flt("GammaBlue", "Gamma Blue", 0.05, 5.0, 1.0),
381 flt("SaturationRed", "Sat Red", 0.0, 4.0, 1.0),
382 flt("SaturationGreen", "Sat Green", 0.0, 4.0, 1.0),
383 flt("SaturationBlue", "Sat Blue", 0.0, 4.0, 1.0),
384 boolean("PreDividePostMultiply", "Pre-Div/Post", false),
385 boolean("MultiplyByMask", "Mult by Mask", false),
386 flt("Blend", "Blend", 0.0, 1.0, 1.0),
387 ] },
388 "HueCurves" => const { &[
389 boolean("PreDividePostMultiply", "Pre-Div/Post", false),
390 boolean("MultiplyByMask", "Mult by Mask", false),
391 flt("Blend", "Blend", 0.0, 1.0, 1.0),
392 ] },
393 "GamutConvert" => const { &[
394 fuid("SourceSpace", "Source Space", GAMUT_SPACES, "NoChange"),
395 boolean("RemoveGamma", "Remove Gamma", true),
396 fuid("OutputSpace", "Output Space", GAMUT_SPACES, "NoChange"),
397 boolean("AddGamma", "Add Gamma", true),
398 boolean("PreDividePostMultiply", "Pre-Div/Post", false),
399 boolean("MultiplyByMask", "Mult by Mask", false),
400 flt("Blend", "Blend", 0.0, 1.0, 1.0),
401 ] },
402 "UltraKeyer" => const { &[
403 rgba("KeyColor", "Key Color", "BackgroundRed", "BackgroundGreen", "BackgroundBlue", None, [0.0, 1.0, 0.0, 1.0]),
404 flt("MatteSeparation", "Matte Sep", 0.0, 1.0, 0.0),
405 flt("LowMatteThreshold", "Matte Low", 0.0, 1.0, 0.0),
406 flt("High", "Matte High", 0.0, 1.0, 1.0),
407 flt("SpillSuppression", "Spill", 0.0, 1.0, 0.0),
408 boolean("InvertMatte", "Invert Matte", false),
409 boolean("PostMultiplyImage", "Post-Multiply", true),
410 flt("Blend", "Blend", 0.0, 1.0, 1.0),
411 ] },
412 "Custom" => const { &[
413 text("RedExpression", "Red Expr", "r1"),
414 text("GreenExpression", "Green Expr", "g1"),
415 text("BlueExpression", "Blue Expr", "b1"),
416 text("AlphaExpression", "Alpha Expr", "a1"),
417 flt("NumberIn1", "Number 1", -10.0, 10.0, 0.0),
418 flt("NumberIn2", "Number 2", -10.0, 10.0, 0.0),
419 flt("NumberIn3", "Number 3", -10.0, 10.0, 0.0),
420 flt("NumberIn4", "Number 4", -10.0, 10.0, 0.0),
421 flt("NumberIn5", "Number 5", -10.0, 10.0, 0.0),
422 flt("NumberIn6", "Number 6", -10.0, 10.0, 0.0),
423 flt("NumberIn7", "Number 7", -10.0, 10.0, 0.0),
424 flt("NumberIn8", "Number 8", -10.0, 10.0, 0.0),
425 v2("PointIn1", "Point 1", -1.0, 2.0, [0.5, 0.5]),
426 v2("PointIn2", "Point 2", -1.0, 2.0, [0.5, 0.5]),
427 v2("PointIn3", "Point 3", -1.0, 2.0, [0.5, 0.5]),
428 v2("PointIn4", "Point 4", -1.0, 2.0, [0.5, 0.5]),
429 boolean("ProcessRed", "Proc Red", true),
430 boolean("ProcessGreen", "Proc Green", true),
431 boolean("ProcessBlue", "Proc Blue", true),
432 boolean("ProcessAlpha", "Proc Alpha", true),
433 flt("Blend", "Blend", 0.0, 1.0, 1.0),
434 ] },
435
436 // --- Generators & I/O ---
437 "Background" => const { &[
438 fuid("Type", "Type", &["Solid", "Horizontal", "Vertical", "Corner", "Gradient"], "Solid"),
439 fuid("GradientType", "Grad Type", &["Linear", "Radial", "Angle", "Reflect"], "Linear"),
440 rgba("TopLeftColor", "Color", "TopLeftRed", "TopLeftGreen", "TopLeftBlue", Some("TopLeftAlpha"), [0.0, 0.0, 0.0, 1.0]),
441 flt("Width", "Width", 1.0, 7680.0, 1920.0),
442 flt("Height", "Height", 1.0, 4320.0, 1080.0),
443 ] },
444 "FastNoise" => const { &[
445 flt("Detail", "Detail", 0.0, 10.0, 2.0),
446 flt("Contrast", "Contrast", 0.0, 5.0, 1.0),
447 flt("Brightness", "Brightness", -1.0, 1.0, 0.0),
448 boolean("LockXY", "Lock X/Y", true),
449 flt("XScale", "Scale", 0.01, 50.0, 2.0),
450 flt("YScale", "Y Scale", 0.01, 50.0, 2.0),
451 flt("Angle", "Angle", -360.0, 360.0, 0.0),
452 flt("Seethe", "Seethe", 0.0, 100.0, 0.0),
453 flt("SeetheRate", "Seethe Rate", 0.0, 2.0, 0.0),
454 boolean("Discontinuous", "Discontinuous", false),
455 boolean("Inverted", "Inverted", false),
456 v2("Center", "Center", -2.0, 3.0, [0.5, 0.5]),
457 rgba("Color1", "Color 1", "Color1Red", "Color1Green", "Color1Blue", Some("Color1Alpha"), [0.0, 0.0, 0.0, 0.0]),
458 rgba("Color2", "Color 2", "Color2Red", "Color2Green", "Color2Blue", Some("Color2Alpha"), [1.0, 1.0, 1.0, 1.0]),
459 flt("Width", "Width", 1.0, 7680.0, 1920.0),
460 flt("Height", "Height", 1.0, 4320.0, 1080.0),
461 ] },
462 "DaySky" => const { &[
463 boolean("UseFrameFormatSettings", "Frame Format", false),
464 flt("Width", "Width", 1.0, 7680.0, 1920.0),
465 flt("Height", "Height", 1.0, 4320.0, 1080.0),
466 flt("Latitude", "Latitude", -90.0, 90.0, 43.65),
467 flt("Longitude", "Longitude", -180.0, 180.0, -79.38),
468 fuid("Month", "Month", MONTHS, "January"),
469 flt("Day", "Day", 1.0, 31.0, 1.0),
470 flt("Time", "Time (Hr)", 0.0, 24.0, 12.0),
471 flt("Turbidity", "Turbidity", 0.0, 1.0, 0.0),
472 flt("Exposure", "Exposure", 0.0, 5.0, 0.72),
473 flt("Horizon.Brightness", "Horiz Bright", 0.0, 5.0, 1.0),
474 flt("Horizon.Luminance", "Horiz Luma", 0.0, 5.0, 1.0),
475 flt("Circumsolar.Intensity", "Sun Int", 0.0, 5.0, 1.0),
476 flt("Circumsolar.Width", "Sun Width", 0.0, 5.0, 1.0),
477 flt("BackscatteredLight", "Backscatter", 0.0, 5.0, 1.0),
478 flt("Blend", "Blend", 0.0, 1.0, 1.0),
479 ] },
480 "TextPlus" => const { &[
481 text("StyledText", "Styled Text", ""),
482 text("Font", "Font", "Helvetica Neue"),
483 text("Style", "Style", "Regular"),
484 flt("Size", "Size", 0.005, 1.0, 0.08),
485 flt("CharacterSpacing", "Tracking", 0.0, 4.0, 1.0),
486 flt("LineSpacing", "Line Space", 0.0, 4.0, 1.0),
487 v2("Center", "Center", -1.0, 2.0, [0.5, 0.5]),
488 flt("HorizontalLeftCenterRight", "H Align", -1.0, 1.0, 0.0),
489 flt("VerticalTopCenterBottom", "V Align", -1.0, 1.0, 0.0),
490 rgba("TextColor", "Text Color", "Red1", "Green1", "Blue1", Some("Alpha1"), [1.0, 1.0, 1.0, 1.0]),
491 flt("Blend", "Blend", 0.0, 1.0, 1.0),
492 ] },
493 "Loader" => const { &[
494 flt("GlobalIn", "Global In", 0.0, 10000.0, 0.0),
495 flt("GlobalOut", "Global Out", 0.0, 10000.0, 100.0),
496 int_enum("MissingFrames", "Missing", &[(0, "Fail"), (1, "Output Color"), (2, "Hold Previous")], 0),
497 boolean("Loop", "Loop", false),
498 boolean("Reverse", "Reverse", false),
499 ] },
500 "Saver" => const { &[
501 boolean("SetSequenceStart", "Seq Start", false),
502 flt("SequenceStartFrame", "Start Frame", 0.0, 10000.0, 0.0),
503 ] },
504 "TimeStretcher" => const { &[
505 flt("SourceTime", "Source Time", 0.0, 10000.0, 0.0),
506 int_enum("InterpolateBetweenFrames", "Interpolate", &[(0, "Nearest"), (1, "Blend"), (2, "Flow")], 1),
507 ] },
508 "TimeSpeed" => const { &[
509 flt("Speed", "Speed", -10.0, 10.0, 1.0),
510 flt("Delay", "Delay", -1000.0, 1000.0, 0.0),
511 ] },
512
513 // --- Paint & Masks ---
514 "Paint" => const { &[
515 flt("Blend", "Blend", 0.0, 1.0, 1.0),
516 ] },
517 "PaintMask" => const { &[
518 fuid("PaintMode", "Paint Mode", PAINT_MODES, "Merge"),
519 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
520 flt("SoftEdge", "Soft Edge", 0.0, 0.5, 0.0),
521 flt("Level", "Level", 0.0, 1.0, 1.0),
522 boolean("Invert", "Invert", false),
523 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
524 flt("MaskWidth", "Mask Width", 1.0, 7680.0, 1920.0),
525 flt("MaskHeight", "Mask Height", 1.0, 4320.0, 1080.0),
526 ] },
527 "EllipseMask" => const { &[
528 fuid("PaintMode", "Paint Mode", PAINT_MODES, "Merge"),
529 flt("Level", "Level", 0.0, 1.0, 1.0),
530 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
531 flt("SoftEdge", "Soft Edge", 0.0, 0.5, 0.0),
532 flt("BorderWidth", "Border", -0.2, 0.2, 0.0),
533 boolean("Solid", "Solid", true),
534 boolean("Invert", "Invert", false),
535 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
536 flt("Width", "Width", 0.0, 2.0, 0.5),
537 flt("Height", "Height", 0.0, 2.0, 0.5),
538 flt("Angle", "Angle", -360.0, 360.0, 0.0),
539 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
540 ] },
541 "RectangleMask" => const { &[
542 fuid("PaintMode", "Paint Mode", PAINT_MODES, "Merge"),
543 flt("Level", "Level", 0.0, 1.0, 1.0),
544 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
545 flt("SoftEdge", "Soft Edge", 0.0, 0.5, 0.0),
546 flt("BorderWidth", "Border", -0.2, 0.2, 0.0),
547 flt("CornerRadius", "Corner", 0.0, 1.0, 0.0),
548 boolean("Solid", "Solid", true),
549 boolean("Invert", "Invert", false),
550 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
551 flt("Width", "Width", 0.0, 2.0, 0.5),
552 flt("Height", "Height", 0.0, 2.0, 0.5),
553 flt("Angle", "Angle", -360.0, 360.0, 0.0),
554 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
555 ] },
556 "BitmapMask" => const { &[
557 fuid("Channel", "Channel", MASK_CHANNELS, "Alpha"),
558 flt("Low", "Low", 0.0, 1.0, 0.0),
559 flt("High", "High", 0.0, 1.0, 1.0),
560 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
561 flt("SoftEdge", "Soft Edge", 0.0, 0.5, 0.0),
562 flt("Level", "Level", 0.0, 1.0, 1.0),
563 boolean("Invert", "Invert", false),
564 boolean("FitInput", "Fit Input", false),
565 v2("Center", "Center", -0.5, 1.5, [0.5, 0.5]),
566 fuid("PaintMode", "Paint Mode", PAINT_MODES, "Merge"),
567 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
568 fuid("OutputSize", "Output Size", &["Default", "Custom"], "Default"),
569 ] },
570 "WandMask" => const { &[
571 v2("SelectionPoint", "Seed Point", 0.0, 1.0, [0.5, 0.5]),
572 flt("Range", "Range", 0.0, 1.0, 0.1),
573 flt("RangeSoftEdge", "Range Soft", 0.0, 1.0, 0.0),
574 int_enum("Channel", "Channel", &[(0, "Color"), (1, "Red"), (2, "Green"), (3, "Blue"), (4, "Alpha")], 0),
575 int_enum("ColorSpace", "Color Space", &[(0, "RGB"), (1, "YUV")], 0),
576 fuid("Filter", "Filter", BLUR_FILTERS, "Fast Gaussian"),
577 flt("SoftEdge", "Soft Edge", 0.0, 0.5, 0.0),
578 flt("Level", "Level", 0.0, 1.0, 1.0),
579 boolean("Invert", "Invert", false),
580 fuid("PaintMode", "Paint Mode", PAINT_MODES, "Merge"),
581 fuid("ClippingMode", "Clipping", CLIPPING_MODES, "Frame"),
582 ] },
583
584 // --- Vector Shapes ---
585 "sRender" => const { &[
586 flt("Width", "Width", 1.0, 7680.0, 1920.0),
587 flt("Height", "Height", 1.0, 4320.0, 1080.0),
588 flt("Blend", "Blend", 0.0, 1.0, 1.0),
589 ] },
590 "sEllipse" => const { &[
591 flt("Width", "Width", 0.0, 2.0, 0.5),
592 flt("Height", "Height", 0.0, 2.0, 0.5),
593 flt("Translate.X", "Offset X", -1.0, 1.0, 0.0),
594 flt("Translate.Y", "Offset Y", -1.0, 1.0, 0.0),
595 flt("Angle", "Angle", -360.0, 360.0, 0.0),
596 boolean("Solid", "Solid", true),
597 flt("BorderWidth", "Border", 0.0, 0.2, 0.01),
598 rgba("Color", "Color", "Red", "Green", "Blue", Some("Alpha"), [1.0, 1.0, 1.0, 1.0]),
599 ] },
600 "sRectangle" => const { &[
601 flt("Width", "Width", 0.0, 2.0, 0.5),
602 flt("Height", "Height", 0.0, 2.0, 0.5),
603 flt("CornerRadius", "Corner", 0.0, 1.0, 0.0),
604 flt("Translate.X", "Offset X", -1.0, 1.0, 0.0),
605 flt("Translate.Y", "Offset Y", -1.0, 1.0, 0.0),
606 flt("Angle", "Angle", -360.0, 360.0, 0.0),
607 boolean("Solid", "Solid", true),
608 flt("BorderWidth", "Border", 0.0, 0.2, 0.01),
609 int_enum("JoinStyle", "Join", JOIN_STYLES, 2),
610 rgba("Color", "Color", "Red", "Green", "Blue", Some("Alpha"), [1.0, 1.0, 1.0, 1.0]),
611 ] },
612 "sNGon" => const { &[
613 flt("Sides", "Sides", 3.0, 64.0, 6.0),
614 flt("Width", "Width", 0.0, 2.0, 0.5),
615 flt("Height", "Height", 0.0, 2.0, 0.5),
616 flt("Translate.X", "Offset X", -1.0, 1.0, 0.0),
617 flt("Translate.Y", "Offset Y", -1.0, 1.0, 0.0),
618 flt("Angle", "Angle", -360.0, 360.0, 0.0),
619 boolean("Solid", "Solid", true),
620 flt("BorderWidth", "Border", 0.0, 0.2, 0.01),
621 int_enum("JoinStyle", "Join", JOIN_STYLES, 2),
622 rgba("Color", "Color", "Red", "Green", "Blue", Some("Alpha"), [1.0, 1.0, 1.0, 1.0]),
623 ] },
624 "sBoolean" => const { &[
625 fuid("Operation", "Operation", &["Intersection", "Union", "Subtract", "Xor"], "Intersection"),
626 rgba("Color", "Color", "Red", "Green", "Blue", Some("Alpha"), [1.0, 1.0, 1.0, 1.0]),
627 ] },
628 "sTransform" => const { &[
629 flt("XOffset", "X Offset", -1.0, 1.0, 0.0),
630 flt("YOffset", "Y Offset", -1.0, 1.0, 0.0),
631 flt("XPivot", "X Pivot", -1.0, 1.0, 0.0),
632 flt("YPivot", "Y Pivot", -1.0, 1.0, 0.0),
633 flt("Scale", "Scale", 0.0, 5.0, 1.0),
634 flt("XSize", "X Size", 0.0, 5.0, 1.0),
635 flt("YSize", "Y Size", 0.0, 5.0, 1.0),
636 flt("ZRotation", "Rotation", -360.0, 360.0, 0.0),
637 ] },
638 "sOutline" => const { &[
639 flt("Thickness", "Thickness", 0.0, 0.2, 0.01),
640 int_enum("JoinStyle", "Join", JOIN_STYLES, 2),
641 int_enum("CapStyle", "Cap", CAP_STYLES, 0),
642 ] },
643 "sGrid" => const { &[
644 flt("CellsX", "Cells X", 1.0, 32.0, 3.0),
645 flt("CellsY", "Cells Y", 1.0, 32.0, 3.0),
646 flt("XOffset", "X Offset", -2.0, 2.0, 0.2),
647 flt("YOffset", "Y Offset", -2.0, 2.0, 0.2),
648 ] },
649
650 // --- 3D Scene, Lights & Materials ---
651 "Camera3D" => const { &[
652 flt("FLength", "Focal Len", 5.0, 200.0, 35.0),
653 flt("ApertureW", "Gate W", 0.1, 5.0, 1.4173236),
654 flt("ApertureH", "Gate H", 0.1, 5.0, 0.9448824),
655 fuid("ResolutionGateFit", "Gate Fit", GATE_FITS, "Height"),
656 flt("PlaneOfFocus", "Focus Dist", 0.01, 100.0, 5.0),
657 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
658 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
659 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 5.0),
660 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
661 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
662 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
663 ] },
664 "Shape3D" => const { &[
665 fuid("Shape", "Shape", SHAPE3D_TYPES, "SurfacePlaneInputs"),
666 flt("SurfacePlaneInputs.Width", "Plane W", 0.01, 20.0, 1.0),
667 flt("SurfacePlaneInputs.SubdivisionWidth", "Plane Sub", 1.0, 64.0, 10.0),
668 flt("SurfaceSphereInputs.Radius", "Sphere R", 0.01, 20.0, 1.0),
669 flt("SurfaceCylinderInputs.Radius", "Cyl R", 0.01, 20.0, 1.0),
670 flt("SurfaceCylinderInputs.Height", "Cyl H", 0.01, 20.0, 2.0),
671 flt("SurfaceCubeInputs.Width", "Cube W", 0.01, 20.0, 1.0),
672 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
673 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
674 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 0.0),
675 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
676 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
677 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
678 flt("Transform3DOp.Scale.X", "Scale", 0.01, 20.0, 1.0),
679 ] },
680 "Cube3D" => const { &[
681 flt("SurfaceCubeInputs.Width", "Width", 0.01, 20.0, 1.0),
682 flt("SurfaceCubeInputs.SubdivisionWidth", "Subdivs", 1.0, 64.0, 10.0),
683 boolean("SurfaceCubeInputs.Wireframe", "Wireframe", false),
684 boolean("SurfaceCubeInputs.Visibility.IsVisible", "Visible", true),
685 boolean("SurfaceCubeInputs.Lighting.IsAffectedByLights", "Lit", true),
686 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
687 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
688 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 0.0),
689 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
690 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
691 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
692 flt("Transform3DOp.Scale.X", "Scale", 0.01, 20.0, 1.0),
693 ] },
694 "SurfaceFBXMesh" => const { &[
695 text("ImportFile", "FBX / OBJ", ""),
696 text("ObjName", "Object Name", ""),
697 flt("ScaleFileUnitsBy", "Scale Units", 0.001, 100.0, 1.0),
698 boolean("SurfaceFBXInputs.Visibility.IsVisible", "Visible", true),
699 boolean("SurfaceFBXInputs.Lighting.IsAffectedByLights", "Lit", true),
700 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
701 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
702 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 0.0),
703 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
704 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
705 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
706 flt("Transform3DOp.Scale.X", "Scale", 0.01, 20.0, 1.0),
707 ] },
708 "LightPoint" => const { &[
709 boolean("Enabled", "Enabled", true),
710 rgba("Color", "Color", "Red", "Green", "Blue", None, [1.0, 1.0, 1.0, 1.0]),
711 flt("Intensity", "Intensity", 0.0, 20.0, 1.0),
712 int_enum("DecayType", "Decay Type", DECAY_TYPES, 0),
713 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
714 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
715 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 0.0),
716 ] },
717 "LightSpot" => const { &[
718 boolean("Enabled", "Enabled", true),
719 rgba("Color", "Color", "Red", "Green", "Blue", None, [1.0, 1.0, 1.0, 1.0]),
720 flt("Intensity", "Intensity", 0.0, 20.0, 1.0),
721 flt("ConeAngle", "Cone Angle", 1.0, 179.0, 40.0),
722 flt("PenumbraAngle", "Penumbra", -45.0, 45.0, 0.0),
723 int_enum("DecayType", "Decay Type", DECAY_TYPES, 0),
724 flt("Transform3DOp.Translate.X", "Trans X", -50.0, 50.0, 0.0),
725 flt("Transform3DOp.Translate.Y", "Trans Y", -50.0, 50.0, 0.0),
726 flt("Transform3DOp.Translate.Z", "Trans Z", -50.0, 50.0, 0.0),
727 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
728 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
729 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
730 ] },
731 "LightDirectional" => const { &[
732 boolean("Enabled", "Enabled", true),
733 rgba("Color", "Color", "Red", "Green", "Blue", None, [1.0, 1.0, 1.0, 1.0]),
734 flt("Intensity", "Intensity", 0.0, 20.0, 1.0),
735 flt("Transform3DOp.Rotate.X", "Rot X", -180.0, 180.0, 0.0),
736 flt("Transform3DOp.Rotate.Y", "Rot Y", -180.0, 180.0, 0.0),
737 flt("Transform3DOp.Rotate.Z", "Rot Z", -180.0, 180.0, 0.0),
738 ] },
739 "LightAmbient" => const { &[
740 boolean("Enabled", "Enabled", true),
741 rgba("Color", "Color", "Red", "Green", "Blue", None, [1.0, 1.0, 1.0, 1.0]),
742 flt("Intensity", "Intensity", 0.0, 10.0, 1.0),
743 ] },
744 "MtlBlinn" | "MtlPhong" => const { &[
745 rgba("Diffuse", "Diffuse", "Diffuse.Color.Red", "Diffuse.Color.Green", "Diffuse.Color.Blue", Some("Diffuse.Opacity"), [1.0, 1.0, 1.0, 1.0]),
746 rgba("Specular", "Specular", "Specular.Color.Red", "Specular.Color.Green", "Specular.Color.Blue", None, [1.0, 1.0, 1.0, 1.0]),
747 flt("Specular.Intensity", "Spec Int", 0.0, 4.0, 1.0),
748 flt("Specular.Exponent", "Spec Exp", 1.0, 200.0, 50.0),
749 ] },
750 "MtlCookTorrance" => const { &[
751 rgba("Diffuse", "Diffuse", "Diffuse.Color.Red", "Diffuse.Color.Green", "Diffuse.Color.Blue", Some("Diffuse.Opacity"), [1.0, 1.0, 1.0, 1.0]),
752 rgba("Specular", "Specular", "Specular.Color.Red", "Specular.Color.Green", "Specular.Color.Blue", None, [1.0, 1.0, 1.0, 1.0]),
753 flt("Specular.Intensity", "Spec Int", 0.0, 4.0, 1.0),
754 flt("Specular.Roughness", "Roughness", 0.05, 1.0, 0.6),
755 ] },
756 _ => &[],
757 }
758}