From 553e591f4927dbb2531ae36ccc489e08393d244b Mon Sep 17 00:00:00 2001 From: Peter Kutz Date: Tue, 29 Jul 2025 15:59:29 -0700 Subject: [PATCH 1/2] Allow subsurface_radius_scale to go above 1 --- index.html | 2 +- parametrization.md.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index c5d8579..30d36a2 100644 --- a/index.html +++ b/index.html @@ -750,7 +750,7 @@ **`subsurface_weight`** | Weight | `float` | $ [0, 1] $ | | $ 0 $ | Mix weight between subsurface and diffuse slabs **`subsurface_color`** | Color | `color3` | $ [0, 1] $ | | $ (0.8, 0.8, 0.8) $ | The observed reflection color of $V^\infty_\mathrm{subsurface}$ **`subsurface_radius`** | Radius | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 1 $ | Length scale of MFP -**`subsurface_radius_scale`** | Radius scale | `color3` | $ [0, 1]^3 $ | | $ (1.0, 0.5, 0.25) $ | RGB multiplier to **`subsurface_radius`**, giving the per-channel MFPs +**`subsurface_radius_scale`** | Radius scale | `color3` | $ [0, \infty)^3$| $ [0, 1]^3$| $ (1.0, 0.5, 0.25) $ | RGB multiplier to **`subsurface_radius`**, giving the per-channel MFPs **`subsurface_scatter_anisotropy`** | Anisotropy | `float` | $ [-1, 1] $ | | $ 0 $ | Anisotropy of the Henyey--Greenstein phase function of the interior medium $V^\infty_\mathrm{subsurface}$ ![](images/subsurface1.jpg width=99%) ![](images/subsurface2.jpg width=99%) ![](images/subsurface3.jpg width=99%) diff --git a/parametrization.md.html b/parametrization.md.html index 7351597..fd4f344 100644 --- a/parametrization.md.html +++ b/parametrization.md.html @@ -44,7 +44,7 @@ | `subsurface_weight` | Weight | `float` | $ [0, 1] $ | | $ 0 $ | | | `subsurface_color` | Color | `color3` | $ [0, 1] $ | | $ (0.8, 0.8, 0.8) $ | | | `subsurface_radius` | Radius | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 1 $ | length | -| `subsurface_radius_scale` | Radius scale | `color3` | $ [0, 1]^3 $ | | $ (1.0, 0.5, 0.25) $ | | +| `subsurface_radius_scale` | Radius scale | `color3` | $ [0, \infty)^3 $ | $ [0, 1]^3 $ | $ (1.0, 0.5, 0.25) $ | | | `subsurface_scatter_anisotropy` | Anisotropy | `float` | $ [-1, 1] $ | | $ 0 $ | | | **Coat** | | `coat_weight` | Weight | `float` | $ [0, 1] $ | | $ 0 $ | | From 38ecbbbd74a2e80717aa257bc6e1e9f2910e0006 Mon Sep 17 00:00:00 2001 From: Peter Kutz Date: Tue, 29 Jul 2025 16:07:27 -0700 Subject: [PATCH 2/2] Adjust/fix formatting/alignment --- index.html | 14 +++++++------- parametrization.md.html | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.html b/index.html index 30d36a2..c74ed6f 100644 --- a/index.html +++ b/index.html @@ -745,13 +745,13 @@ Note that the default value of **`subsurface_radius_scale`** is set at $(1, 0.5, 0.25)$ to approximate the effect of Rayleigh scattering. If we roughly approximate the wavelength corresponding to each of the RGB channels as $\lambda/\mathrm{nm} \approx 650, 550, 450$ and assume the radii scale like the reciprocal of the extinction, then since in Rayleigh scattering the extinction scales like $\lambda^{-4}$ for light of wavelength $\lambda$ the expected relative magnitudes of the radii are $(1, (550/650)^4, (450/650)^4) \approx (1, 0.5, 0.25)$, hence the chosen default. This provides a slightly more realistic default look for the subsurface than resulting from gray radii. -Subsurface params | Label | Type | Range | Norm | Default | Description -------------------------------------|--------------|-----------|:---------------:|:----------:|:--------------------:|---------------------------------------------- -**`subsurface_weight`** | Weight | `float` | $ [0, 1] $ | | $ 0 $ | Mix weight between subsurface and diffuse slabs -**`subsurface_color`** | Color | `color3` | $ [0, 1] $ | | $ (0.8, 0.8, 0.8) $ | The observed reflection color of $V^\infty_\mathrm{subsurface}$ -**`subsurface_radius`** | Radius | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 1 $ | Length scale of MFP -**`subsurface_radius_scale`** | Radius scale | `color3` | $ [0, \infty)^3$| $ [0, 1]^3$| $ (1.0, 0.5, 0.25) $ | RGB multiplier to **`subsurface_radius`**, giving the per-channel MFPs -**`subsurface_scatter_anisotropy`** | Anisotropy | `float` | $ [-1, 1] $ | | $ 0 $ | Anisotropy of the Henyey--Greenstein phase function of the interior medium $V^\infty_\mathrm{subsurface}$ +Subsurface params | Label | Type | Range | Norm | Default | Description +------------------------------------|--------------|-----------|:-----------------:|:------------:|:--------------------:|---------------------------------------------- +**`subsurface_weight`** | Weight | `float` | $ [0, 1] $ | | $ 0 $ | Mix weight between subsurface and diffuse slabs +**`subsurface_color`** | Color | `color3` | $ [0, 1] $ | | $ (0.8, 0.8, 0.8) $ | The observed reflection color of $V^\infty_\mathrm{subsurface}$ +**`subsurface_radius`** | Radius | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 1 $ | Length scale of MFP +**`subsurface_radius_scale`** | Radius scale | `color3` | $ [0, \infty)^3 $ | $ [0, 1]^3 $ | $ (1.0, 0.5, 0.25) $ | RGB multiplier to **`subsurface_radius`**, giving the per-channel MFPs +**`subsurface_scatter_anisotropy`** | Anisotropy | `float` | $ [-1, 1] $ | | $ 0 $ | Anisotropy of the Henyey--Greenstein phase function of the interior medium $V^\infty_\mathrm{subsurface}$ ![](images/subsurface1.jpg width=99%) ![](images/subsurface2.jpg width=99%) ![](images/subsurface3.jpg width=99%)
diff --git a/parametrization.md.html b/parametrization.md.html index fd4f344..dc13a22 100644 --- a/parametrization.md.html +++ b/parametrization.md.html @@ -62,7 +62,7 @@ | `emission_color` | Color | `color3` | $ [0, 1]^3 $ | | $ (1, 1, 1) $ | | | **Thin-film** | | `thin_film_weight` | Weight | `float` | $ [0, 1] $ | | $ 0 $ | | -| `thin_film_thickness` | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | $\mathrm{\mu m}$ | +| `thin_film_thickness` | Thickness | `float` | $ [0, \infty) $ | $ [0, 1] $ | $ 0.5 $ | $\mathrm{\mu m}$ | | `thin_film_ior` | IOR | `float` | $ (0, \infty) $ | $ [1, 3] $ | $ 1.4 $ | | | **Geometry** | | `geometry_opacity` | Opacity | `float` | $ [0, 1] $ | | $ 1 $ | |