density of air
https://en.wikipedia.org/wiki/Density_of_air
https://en.wikipedia.org/wiki/International_Standard_Atmosphere
被新来的实习TA妹子问道,才发现原来有个地方的实现当时并没有细想。原来实际的大气是分成很多层的,每一层的密度不太一样,Bruneton17年的实现把整个大气层简化成一层,用了一套参数,奇怪的知识又增加了。
how to produce random value
做SSR的时候要生成一些随机数做jitter,才发现原来随机数的生成也是有门道的呀,有意思~
- 3D random number generator inspired by PCGs (permuted congruential generator)
- Hammersley16
- Halton
https://developer.nvidia.com/gpugems/gpugems3/part-vi-gpu-computing/chapter-37-efficient-random-number-generation-and-application