Skip to content

Commit 0e0b9c6

Browse files
committed
upd
1 parent a50af6a commit 0e0b9c6

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

content/posts/foundation/pt-6-path-tracing-adventures.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
author: mos9527
3-
lastmod: 2025-12-25T15:49:56.953915
3+
lastmod: 2025-12-25T16:12:04.191000
44
title: Foundation 施工笔记 【6】- 路径追踪
55
tags: ["CG","Vulkan","Foundation"]
66
categories: ["CG","Vulkan"]
@@ -1122,7 +1122,11 @@ E(\mu_0) = f_0 \int_{0}^{2\pi}{d\phi}\int_{0}^{1}f(\mu_0, \mu_i)\mu_id\mu_i + (f
11221122
$$
11231123
常数$f_0,f_{90}$完全可以拖出来。此外,注意到左边积分还是之前$E$的形式;右边多了个$\lambda$,额外记一个表算即可。我们记右边(不包括$f_0,f_{90}$的积分为$E\prime$,离散形式为:
11241124
$$
1125-
E\prime(\mu_0) = \int_{0}^{1}\lambda(w_o \cdot w_m)f(\mu_0, \mu_i)\mu_id\mu_i = \frac{1}{N}\sum \frac{\lambda(w_o \cdot w_m)f(\mu_o, \mu_i)\mu_i}{p(\mu_i)}
1125+
E\prime(\mu_0) = \int_{0}^{2\pi}\int_{0}^{1}\lambda(w_o \cdot w_m)f(\mu_0, \mu_i)\mu_id\mu_i = \frac{1}{N}\sum \frac{\lambda(w_o \cdot w_m)f(\mu_o, \mu_i)\mu_i}{p(\mu_i)}
1126+
$$
1127+
最后的$E\prime\prime(\mu_0)$则为:
1128+
$$
1129+
E\prime\prime(\mu_0) = f_0 \times E(\mu_0) + (f_{90} - f_0)\times E\prime(\mu_0)
11261130
$$
11271131
和之前计算相比改动很小。直接贴代码:
11281132
@@ -1162,4 +1166,13 @@ ggxE[dot(p, uint2(1, 32))] = float2(E / samples, Eprime / samples);
11621166

11631167
![image-20251225154851094](/image-foundation/image-20251225154851094.png)
11641168

1169+
###### 电介质效果
1170+
1171+
![image-20251225161144555](/image-foundation/image-20251225161144555.png)
1172+
1173+
TBD:中途roughness过补偿?
1174+
1175+
1176+
1177+
11651178
<h1 style="color:red">--- 施工中 ---</h1>
148 KB
Loading

0 commit comments

Comments
 (0)