Sampling & distribution · 7 / 10
Cosine-Weighted Hemisphere Sampling
法線に近い方向を多く選ぶ。
Compare in motion
Interactive demo
表面からの反射光
AReference
角度を一様に選ぶ
BCosine-Weighted Hemisphere Sampling100%
拡散反射の試料を効率よく選べる
Scrub to pause and inspect. At 0%, B matches A; at 100%, B shows the effect. The scene repeats every 8 seconds.
Look for: 法線寄りの方向を多く選ぶ → 方向別の試料が出る。
A small visual example of a game use case. Games combine these techniques with assets and other effects.
Read the storyboard
例: 表面からの反射光
1. Start
法線が決まる
2. Change
法線寄りの方向を多く選ぶ
3. Result
方向別の試料が出る
How it works
1. Input
表面法線と半球
2. Process
余弦に比例する確率で選ぶ
3. Result
法線寄りの方向
Further reading
Fast Poisson Disk Sampling in Arbitrary Dimensions ↗A general reference for this subcategory.