Parameters
Every parameter of the pipeline, by group. The same texts are shown by the ? buttons of the app, by pbrgen params and by the MCP tools list_params / describe_param: they come from one source.
Set a parameter with --set name=value on the command line, in Advanced mode in the app, in a preset file (a flat JSON object) or in the params argument of an MCP tool. Radii, blurs and the normal strength are defined at reference_size (1024) pixels and scale with the image, so a preset gives the same look at 512 and at 4096.
General
3 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
reference_size | 1024 | 0 .. 4096 | Width in pixels at which pixel-sized parameters and normal strength are defined. 0 disables the scaling (parameters are raw pixels). Tip: Leave at 1024: one preset then looks the same at 512, 1024 or 4096. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
resize | 0 | 0 .. 4096 | Centre-crop to a square and resize to this size before processing. 0 keeps the input size. Tip: Use 1024 or 2048 for huge photos: much faster. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
output_prefix | "Texture" | File name prefix: <prefix>_Height.png, <prefix>_Normal.png, ... Tip: Empty or 'Texture' uses the input file name. Affects: files. |
Input
4 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
input_kind | "height" | height, photo, normal, procedural | What the input is: a height map, a photo / albedo (height is estimated), a tangent-space normal map (height is integrated), or procedural (no input: the height is generated, see the proc_* parameters). Tip: Grey with light = high is a height map; purple/blue is a normal map; anything else is a photo. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
input_channel | "luma" | luma, average, r, g, b, a | How a colour input becomes one channel (height and photo inputs). Tip: luma suits almost everything; use r/g/b/a when the height sits in one channel. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
input_normal_convention | "opengl" | opengl, directx | Green convention of a normal-map input. Tip: A normal map from Unreal or Substance (DirectX)? Pick directx. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
albedo_enabled | false | Also write the (seamless) colour input as <prefix>_Albedo.png. Tip: Useful with a photo + seamless: the albedo gets the same seam fix as the other maps. Affects: albedo. |
Procedural
18 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
proc_generator | "bubbles" | bubbles, ropes, billows | Generator of the procedural height (pbrgen/procedural/): packed bubbles or cells, oriented ropes / ridges, or multi-scale soft billows. Tip: Foam: bubbles; current: ropes; cloud or thick foam: billows. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_seed | 1 | 0 .. 9999 | Seed: the same seed gives the same height at every size. Tip: Don't like the layout? Roll another seed. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_layers | "" | Mix of generators instead of proc_generator: 'generator:mode:weight' items separated by commas, mode add / max / multiply, e.g. 'billows:add:1, bubbles:max:0.7'. Layer i uses seed proc_seed + i. Empty = proc_generator alone. Tip: max puts bubbles on top of the billows; multiply cuts one layer with the other. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. | |
proc_bubble_min_radius | 6.0 | 1.0 .. 64.0 | Smallest bubble radius (px). Tip: Small bubbles fill the gaps between the large ones. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_bubble_max_radius | 36.0 | 2.0 .. 128.0 | Largest bubble radius (px). Radii in between follow foam's inverse-cubic density (many small, few large), placed largest first. Tip: The max/min ratio gives the variety: 6 to 36 looks like foam. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_bubble_coverage | 0.8 | 0.1 .. 1.0 | Share of the area the bubbles cover (0..1); dart throwing stops there or when no candidate fits. Tip: Below 0.6 leaves water showing between the bubbles. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_bubble_overlap | 0.3 | 0.0 .. 0.9 | How far two bubbles may press into each other, as a share of the smaller radius (0 = just touching). Tip: 0.3 is the AWP foam: the gaps become narrow creases. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_bubble_profile | "hemisphere" | hemisphere, dome, flat | Cross-section of a bubble: hemisphere (spherical cap), dome (softer parabola) or flat (a plateau: cells, stones). Tip: flat with low overlap gives cobbles. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_rope_direction | 0.0 | -180.0 .. 180.0 | Direction the ropes run in, degrees counter-clockwise from +x (v up). Tip: Line it up with the river current. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_rope_jitter | 0.0 | 0.0 .. 90.0 | How far the direction wanders across the tile, degrees (0 = straight). Tip: 10 to 25 makes the flow look natural. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_rope_wavelength | 48.0 | 4.0 .. 256.0 | Distance between neighbouring ropes (px). Tip: It is the visible spacing between the crests. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_rope_length | 192.0 | 8.0 .. 1024.0 | How far a rope runs before it breaks up (px). Tip: Long = stripes; short = elongated pieces. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_rope_sharpness | 0.5 | 0.0 .. 1.0 | 0 = soft waves, 1 = sharp ridged crests with round troughs. Tip: Dunes and stretched foam: 0.4 to 0.7. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_billow_scale | 256.0 | 16.0 .. 1024.0 | Size of the largest billows (px). Tip: About a quarter of the tile gives large masses. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_billow_octaves | 5 | 1 .. 8 | Number of billow scales, each lacunarity times finer. Tip: More octaves = more fine detail. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_billow_persistence | 0.5 | 0.1 .. 0.9 | Amplitude of each finer scale relative to the previous one. Tip: 0.5 is the classic; raise it for more texture. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_billow_lacunarity | 2.0 | 1.5 .. 3.0 | Frequency step between scales (non-integer values tile too). Tip: 2 is the classic; 1.8 to 2.2 avoids visible repetition between scales. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
proc_billow_softness | 0.5 | 0.0 .. 4.0 | tanh shaping of the sum: higher = cottony masses, lower = creased. Tip: Thick foam: 0.4 to 1; above that the tops turn into plateaus. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
Seam
6 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
seam_mode | "none" | none, offset_blend, histogram_preserving, periodic, periodic_blend, mirror | How a non-tiling input is made to tile (see pbrgen/seamless.py). none assumes it already tiles. periodic (Moisan) for photos: no duplicated content, and the height estimate smooths the slope kink. periodic_blend for heights: Moisan plus a narrow blend of the fine detail only. offset_blend hides any seam but duplicates content (ghost clumps). Tip: If the image already tiles (like the AWP foam height), keep none: offset_blend adds ghost clumps. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
seam_target | "source" | source, height | Apply to the source image before height estimation, or to the estimated height only (the colour stays as it is). Tip: source is the usual choice; height keeps the colour untouched when the albedo does not matter. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
seam_blend_width | 0.25 | 0.0 .. 0.5 | Width of the band along the edges where the half-offset copy takes over, as a fraction of the size (0..0.5). 0 = identity. Tip: 0.2 to 0.3 hides the seam well; wider blends more and smears detail. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
seam_mask_softness | 1.0 | 0.0 .. 1.0 | Share of the band that is a smooth ramp (0..1). 0 = hard switch. Tip: Keep 1 for height; lower it only if the band shows doubling. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
seam_detail_sigma | 4.0 | 0.5 .. 32.0 | periodic_blend: detail finer than this Gaussian sigma (px) is blended across the edges; coarser shapes keep Moisan's periodic part untouched. Tip: 4 suits almost everything; raise it if the seam still shows in the normal. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
seam_detail_width | 0.05 | 0.0 .. 0.25 | periodic_blend: width of the edge band where the detail is blended, as a fraction of the size (0..0.5). Narrow: little duplicated detail. Tip: 0.03 to 0.08. Wider hides more and duplicates more. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed, albedo. |
Photo
12 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
photo_flatten_mode | "blur" | blur, plane, poly2 | Lighting flatten of a photo. blur: only the log-space de-lighting (photo_delight_sigma). plane / poly2: first divide out a fitted plane or quadratic of the log luminance (a light gradient across the photo), before the seam pass, then the de-lighting. Tip: Photo brighter on one side? Use plane; brighter in the middle (vignette), poly2. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_delight_sigma | 128.0 | 0.0 .. 512.0 | Remove lighting larger than this sigma (px), as a ratio. 0 = off. Tip: Photo with a large shadow or vignette? Lower it to 64. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_local_contrast_sigma | 32.0 | 2.0 .. 256.0 | Neighbourhood (px) of the local contrast normalisation. Tip: Close to the size of the shapes that should share one contrast. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_local_contrast | 0.0 | 0.0 .. 1.0 | Local contrast normalisation amount (0..1). Evens out flat and busy regions. Tip: 0.3 to 0.5 when one side of the photo is much darker. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_octaves | 6 | 1 .. 10 | Number of difference-of-Gaussian bands; sigma doubles per band. Tip: 6 covers 1 to 64 px; raise it for 4K photos with large shapes. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_base_sigma | 1.0 | 0.5 .. 8.0 | Sigma (px) of the finest band split. Tip: Raise it if sensor noise turns into relief. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_weight_micro | 0.25 | 0.0 .. 2.0 | Weight of bands up to 1 px: grain, sensor noise. Tip: Lower it to remove hiss; 0 leaves a clean surface. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_weight_fine | 0.6 | 0.0 .. 2.0 | Weight of bands of 1..4 px: small pores, sand grains. Tip: Raise it for sand and concrete; lower it for smooth stones. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_weight_medium | 1.0 | 0.0 .. 2.0 | Weight of bands of 4..16 px: pebbles, cracks, lumps. Tip: This band gives the material its look: start here. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_weight_large | 0.6 | 0.0 .. 2.0 | Weight of bands above 16 px and the residual: overall shape. Tip: Raise it for large stones; lower it if the photo's lighting turns into relief. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_crevice_strength | 0.0 | 0.0 .. 3.0 | Push dark narrow features down as cracks (0 = off, ~0.5..2). Tip: Great for grout, cracks and gaps between stones. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
photo_crevice_radius | 3.0 | 1.0 .. 12.0 | Half-width (px) of what counts as narrow for the crevice emphasis. Tip: Close to the width of the cracks in the photo. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
Physical
2 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
tile_size_m | 0.0 | 0.0 .. 20.0 | Real-world size of one tile in metres. With height_range_m, the normal and the slope are physical (normal_strength is derived and ignored). 0 = off. Tip: A 2 m stone floor: 2. Change the size and the relief keeps the same real height. Affects: normal, slope. |
height_range_m | 0.0 | 0.0 .. 1.0 | Height difference in metres between white and black in the height. Used with tile_size_m. 0 = off. Tip: Rock: 0.02 to 0.1; foam: 0.01 to 0.05. Affects: normal, slope. |
Height
15 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
height_invert | false | Dark is high (e.g. holes or gaps in a light surface). Tip: Use it when the relief comes out inside out (holes become hills). Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. | |
height_highpass | 0.0 | 0.0 .. 512.0 | Remove features larger than this Gaussian sigma (px), e.g. a photo's uneven lighting. 0 = off. Tip: 64 to 128 flattens a ramp or gradient that should not be relief. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_blur | 0.0 | 0.0 .. 16.0 | Gaussian blur sigma (px) to soften the height. 0 = off. Tip: 0.5 to 1.5 removes aliasing and noise and keeps the shape. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_dequantize_blur | 0.0 | 0.0 .. 4.0 | Gaussian sigma (px) applied to the raw height before the height chain, to hide the steps of an 8-bit source in normals and slopes. 0 = off; about 0.5..2 for an 8-bit height (a run warns with a suggestion). Tip: An 8-bit height drawing contour lines in the normal? Start from the value the warning suggests (about 1); a 16-bit source is better. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_bandpass_low_sigma | 0.0 | 0.0 .. 128.0 | Sharp spectral cut of wavelengths longer than 2 pi sigma (px): removes low-frequency swirls and blotches but keeps everything smaller, unlike the gentle height_highpass. 0 = off. Tip: Swirls or large blotches turned into relief? 16 to 48 (cuts shapes above 100 to 300 px). Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_normalize | "percentile" | percentile, tanh, equalize, none | Range mapping: percentile stretch, tanh soft clip (mean +- height_soft_k std, no flat plates), histogram equalisation, or none. Tip: none keeps the original height byte for byte (with neutral levels, contrast and gamma). Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_soft_k | 1.8 | 0.5 .. 5.0 | height_normalize = tanh: z-scores are squashed by tanh(z / k), then stretched to 0..1. Smaller k flattens the extremes more; about 1.5..2.5. Tip: 1.8 is the AWP foam recipe (tanh of 0.55 z). Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_low_percentile | 0.5 | 0.0 .. 20.0 | Percentile mapped to 0 when height_normalize = percentile. Tip: Raise it when a few very dark pixels flatten the rest. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_high_percentile | 99.5 | 80.0 .. 100.0 | Percentile mapped to 1 when height_normalize = percentile. Tip: Lower it when a few very bright pixels flatten the rest. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_levels_low | 0.0 | 0.0 .. 1.0 | Levels input black point, after normalisation. Tip: Raise it to sink the valleys and flatten the floor. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_levels_high | 1.0 | 0.0 .. 1.0 | Levels input white point, after normalisation. Tip: Lower it to clip the peaks into a plateau. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_contrast | 1.0 | 0.1 .. 4.0 | Contrast around 0.5. 1 = unchanged. Tip: Above 1 makes the relief bolder; below 1 softer. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_gamma | 1.0 | 0.2 .. 4.0 | Gamma (height ** gamma). > 1 sharpens peaks and widens valleys. Tip: 1.5 gives rounded lumps; 0.7 gives plateaus with thin gaps. Affects: height, normal, ao, curvature, cavity, roughness, smoothness, mask, packed. |
height_bits | 16 | 8, 16 | Bit depth of the saved height. 8 bits terrace smooth slopes. Tip: Keep 16 for displacement and parallax. Affects: height. |
height_format | "png" | png, exr_float, exr_half | File format of the height (standalone): png (height_bits), exr_float (32-bit float OpenEXR, ZIP) or exr_half (16-bit float). Godot imports a 16-bit PNG as 8 bits, an EXR at full precision. Tip: A height for Godot or for strong displacement: exr_float. Affects: height, files. |
Normal
5 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
normal_enabled | true | Write the normal map. Tip: Almost always on. Affects: normal. | |
normal_strength | 4.0 | 0.0 .. 40.0 | Slope multiplier (height units per pixel at reference_size). Tip: 4 to 8 for most; foam and sand look right around 6. Affects: normal. |
normal_convention | "opengl" | opengl, directx | opengl: green up (Unity, Blender). directx: green down (Unreal). Tip: Unity uses OpenGL. Getting this wrong flips the light on the relief. Affects: normal. |
normal_method | "sobel" | sobel, central | Gradient filter: sobel (smoother) or central differences (sharper). Tip: central for crisp fine detail; sobel hides noise. Affects: normal. |
normal_suffix_convention | false | Name the normal file after its convention: <prefix>_Normal_GL.png or <prefix>_Normal_DX.png (standalone export). Tip: Turn it on when one folder feeds different engines: the name says which green it is. Affects: files. |
AO
4 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
ao_enabled | true | Write the AO map. Tip: Keep it on for the G channel of the mask map. Affects: ao, packed. | |
ao_radii | [2.0, 6.0, 16.0] | Gaussian sigmas (px) of the neighbourhoods compared with each pixel. Tip: Larger radii darken wide valleys; smaller ones only the gaps. Affects: ao, packed. | |
ao_strength | 3.0 | 0.0 .. 10.0 | How dark a given depth below the neighbourhood gets. Tip: 2 to 4; beyond that the AO reads as dirt. Affects: ao, packed. |
ao_power | 1.0 | 0.2 .. 4.0 | Gamma applied to the AO. > 1 darkens. Tip: Fine tuning after ao_strength. Affects: ao, packed. |
Curvature
3 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
curvature_enabled | true | Write the curvature map (0.5 flat, bright convex, dark concave). Tip: Good for edge wear in a shader. Affects: curvature, roughness, smoothness, packed. | |
curvature_radii | [1.0, 4.0] | Scales (px) averaged: small = fine edges, large = broad shapes. Tip: Two scales, one fine and one medium, work well. Affects: curvature, roughness, smoothness, packed. | |
curvature_strength | 8.0 | 0.0 .. 40.0 | Contrast of the curvature around 0.5. Tip: Raise it until the edges get almost white. Affects: curvature, roughness, smoothness, packed. |
Cavity
3 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
cavity_enabled | true | Write the cavity map (white, dark only in crevices). Tip: Sharper than AO: good for dirt in the gaps. Affects: cavity, roughness, smoothness, packed. | |
cavity_radius | 1.0 | 0.5 .. 16.0 | Scale (px) of the crevices. Tip: Close to the width of the gaps. Affects: cavity, roughness, smoothness, packed. |
cavity_strength | 8.0 | 0.0 .. 60.0 | How dark the crevices get. Tip: 8 to 16 for most materials. Affects: cavity, roughness, smoothness, packed. |
Roughness
8 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
roughness_enabled | true | Write the roughness map. Tip: Keep it on for the A channel (smoothness) of the mask map. Affects: roughness, smoothness, packed. | |
roughness_min | 0.35 | 0.0 .. 1.0 | Roughness of the smoothest areas (convex, high, open). Tip: Lower = shiny tops, like polished stone. Affects: roughness, smoothness, packed. |
roughness_max | 0.85 | 0.0 .. 1.0 | Roughness of the roughest areas (crevices). Tip: Close to 1 for fully matte gaps. Affects: roughness, smoothness, packed. |
roughness_cavity_weight | 1.0 | 0.0 .. 2.0 | Weight of 1 - cavity (crevices rougher). Tip: The most useful term: gaps get matte. Affects: roughness, smoothness, packed. |
roughness_curvature_weight | 0.5 | 0.0 .. 2.0 | Weight of 1 - curvature (convex edges smoother). Tip: Mimics edges polished by wear. Affects: roughness, smoothness, packed. |
roughness_height_weight | 0.0 | 0.0 .. 2.0 | Weight of 1 - height (low areas rougher). Tip: Good for dust settled in the valleys. Affects: roughness, smoothness, packed. |
roughness_contrast | 1.0 | 0.1 .. 4.0 | Contrast of the combined term before mapping to [min, max]. Tip: Raise it to separate shiny from matte. Affects: roughness, smoothness, packed. |
smoothness_enabled | false | Also write smoothness = 1 - roughness (Unity's convention). Tip: For shaders that want smoothness instead of roughness. Affects: smoothness. |
Tone
4 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
tone_enabled | false | Write <prefix>_Tone.png: brightness variation for the albedo, from the height's own shading plus the source's clump-scale variation and fine grain (the AWP foam mat detail G). Linear, band-limited: no large blotches. Tip: Multiply the albedo by it, or pack it with the AO in a BC5 (pack_channels = rg). Affects: tone, packed. | |
tone_height_weight | 0.55 | 0.0 .. 1.0 | Weight of the height detail (height minus a 40 px blur) in the tone. Tip: It gives each clump its own shading. Affects: tone, packed. |
tone_band_weight | 0.3 | 0.0 .. 1.0 | Weight of the source's clump-scale variation (luminance minus a 24 px blur). Tip: Raise it for the tone to follow the photo more. Affects: tone, packed. |
tone_grain_weight | 0.15 | 0.0 .. 1.0 | Weight of the source's fine grain (luminance minus a 2 px blur). Tip: Bubble or sand grain; lower it if it turns into hiss. Affects: tone, packed. |
Slope
3 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
slope_enabled | false | Write <prefix>_Slope.png: the baked slope dH/dx (R) and dH/dv (G, v up), signed, 16-bit, encoded 0.5 + 0.5 * slope / slope_scale. A shader reads it instead of taking screen derivatives of a filtered height. Units: height units per tile, or metres per metre with the physical scale. Tip: The foam lesson: screen derivatives of a bilinear height draw facets and stair steps. Affects: slope. | |
slope_scale | 0.0 | 0.0 .. 200.0 | Slope that maps to 0 / 1 in the slope map. 0 = automatic (the largest slope, rounded up); the value used is in the manifest. Tip: Pin a value when several tiles must share one scale in the shader. Affects: slope. |
slope_pack_height | false | Also write <prefix>_SlopeHeight.png, 16-bit RGBA: R, G slope, B and A height. Tip: One RGBA64 texture with all a shader needs for the relief. Affects: slope. |
Mask
3 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
mask_enabled | false | Write a threshold mask of the highest parts of the height. Tip: Useful for moss, snow or water on the high or low parts. Affects: mask. | |
mask_coverage | 0.5 | 0.0 .. 1.0 | Share of the area that is white. Tip: 0.3 covers only the tops. Affects: mask. |
mask_softness | 0.02 | 0.001 .. 0.2 | Anti-aliasing width, in height units. Tip: 0.02 to 0.05 avoids jaggies. Affects: mask. |
Pack
8 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
metallic | 0.0 | 0.0 .. 1.0 | Constant metallic value, available to packing as 'metallic'. Tip: 0 for non-metals (stone, foam, sand). Affects: packed. |
pack_enabled | true | Write a packed RGBA texture. Tip: The default is the URP/HDRP mask map (metallic, AO, detail, smoothness). Affects: packed. | |
pack_suffix | "MaskMap" | File suffix of the packed texture. Tip: MaskMap is the name Unity uses. Affects: packed. | |
pack_channels | "rgba" | rgba, rg | rgba: four channels. rg: only R and G (B written as 0, no alpha), for a BC5 two-channel texture, e.g. pack_r = ao, pack_g = tone. Tip: BC5 keeps two channels at higher quality than BC7 keeps four. Affects: packed. |
pack_r | "metallic" | Source of R: a map name, 'normal.x', a constant like '0.5', '1-<map>'. Tip: Unity mask map: metallic. Affects: packed. | |
pack_g | "ao" | Source of G. Tip: Unity mask map: ao. Affects: packed. | |
pack_b | "1" | Source of B (detail mask in a Unity mask map). Tip: 1 = detail everywhere. Affects: packed. | |
pack_a | "1-roughness" | Source of A (smoothness in a Unity mask map). Tip: 1-roughness = Unity smoothness. Affects: packed. |
Export
1 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
export_profile | "standalone" | standalone, unity_urp, unity_hdrp, unreal, godot | Files to write (pbrgen/profiles.py): standalone = the loose maps chosen here; unity_urp, unity_hdrp, unreal, godot = that engine's material set with its channel packing, normal convention, 16-bit height, a manifest and import notes. Tip: Going straight into an engine? Pick it: names, channels and the normal's green come out right, and <prefix>_IMPORT_NOTES.md says how to import. Affects: files. |
Texture pack
8 parameters
| Parameter | Default | Typical range / choices | Description |
|---|---|---|---|
texpack_enabled | false | Also write <prefix>.pbrpack: one file (a zip of the manifest, the PNG maps and a small descriptor) that AskrGarden imports into a PBR Material node in one step. Tip: Turn it on when the texture goes to an AskrGarden tree, bush or ground: there it is just 'Import texture pack'. Affects: files. | |
texpack_kind | "generic" | generic, bark, leaf, ground | What the set is for. It only chooses the material defaults the importer applies: bark and ground opaque and one-sided; leaf cut-out (mask, cutoff 0.5) and two-sided; generic sets nothing. Tip: Tree bark: bark. Leaves on a transparent background: leaf. Affects: files. |
texpack_name | "" | Name of the material and of the folder the pack unpacks into (letters, digits, '.', '_', '-'). Empty = the output prefix. Tip: Leave it empty unless the material should be named differently from the files. Affects: files. | |
texpack_alpha_mode | "auto" | auto, opaque, mask | Alpha of the material: opaque, mask (cut-out by the albedo's alpha) or auto (what the kind says). Tip: auto is right nearly always; force mask on a leaf marked as generic. Affects: files. |
texpack_alpha_cutoff | 0.5 | 0.0 .. 1.0 | Alpha below this is cut away when the alpha mode is mask (0..1). Tip: 0.5 is usual; lower it for thin leaves that vanish at a distance. Affects: files. |
texpack_double_sided | "auto" | auto, on, off | Render both faces: on, off or auto (what the kind says). Tip: Leaves and cloth: on. Bark and ground: off. Affects: files. |
texpack_atlas | "" | Leaf atlas regions: 'u0, v0, u1, v1' rectangles inside 0..1 separated by ';' (v down as in glTF, the leaf base at v1), e.g. '0,0,0.5,1; 0.5,0,1,1'. Empty = the whole texture is one leaf. Tip: Only for textures with several leaves side by side. Affects: files. | |
texpack_translucency | 0.0 | 0.0 .. 1.0 | How much light passes through the material (leaves), 0..1. 0 = not written. Tip: 0.3 to 0.6 gives the glow of a leaf against the sun. Affects: files. |