Skip to content

Commit 6ee334e

Browse files
committed
upd
1 parent 4a3e982 commit 6ee334e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
author: mos9527
3-
lastmod: 2025-12-25T19:12:22.889619
3+
lastmod: 2025-12-25T20:00:39.231578
44
title: Foundation 施工笔记 【6】- 路径追踪
55
tags: ["CG","Vulkan","Foundation"]
66
categories: ["CG","Vulkan"]
@@ -1097,7 +1097,7 @@ return BSDFSample(f, wi, pdf, BxDFFlags::GlossyReflection);
10971097
10981098
目前为止,我们只对不存在(不考虑:导体中折射即吸收)折射贡献的BRDF做了改进。对于电介质BRDF(及metal<1),这里的工作是不够的:因为算$E$的时候并没有看「折射」后的能量问题。
10991099
1100-
有一个问题就是这里的参数多了个IOR,ImageWorks (Kulla, Conty)提出使用3D材质查表,但回忆glTF定义:我们材质的IOR是常数$1.5$——这里再次省掉一个维度
1100+
有一个问题就是这里的参数多了个IOR,ImageWorks (Kulla, Conty)提出使用3D材质查表。不过进行一些数学观察不难发现,这个表其实可以仅用两张表达所有$F_0, F_{90}$的情况
11011101
11021102
###### 电介质$E(\mu)$
11031103
@@ -1110,7 +1110,7 @@ $$
11101110
F = f_0 + (f_{90} - f_{0}) \times (1.0 - \cos\theta)^5
11111111
$$
11121112
1113-
麻烦,多了个$f_0$;不妨拆成几个项,记:
1113+
麻烦,多了个$f_0, f_{90}$;不妨拆成几个项,记:
11141114
$$
11151115
\lambda(\theta) = (1.0-\cos\theta)^5
11161116
$$
@@ -1144,7 +1144,7 @@ if (mfDistrib.EffectivelySmooth()){
11441144
}
11451145
float3 wm = mfDistrib.Sample_wm(wo, u);
11461146
VdotH = AbsDot(wo, wm);
1147-
// integrateGGX_E 多一项 Eprime
1147+
// integrateGGX_E 多一项 E'
11481148
for (uint i = 0; i < kSamples;i++) {
11491149
float cosTheta = clamp(u, 1e-4, 1.0f);
11501150
float rough = clamp(v, 1e-4, 1.0f);

0 commit comments

Comments
 (0)