Knowledge Garden

Search

Search IconIcon to open search

Atmospheric Rendering

Last updated Jan 9, 2023 Edit Source

https://en.wikipedia.org/wiki/Mie_scattering https://www.britannica.com/science/Rayleigh-scattering https://www.scratchapixel.com/lessons/procedural-generation-virtual-worlds/simulating-sky https://www.alanzucconi.com/2017/10/10/atmospheric-scattering-1/

#todo

orientation

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
vector v0 = normalize(set(-1,0,-1));  
vector vref = set(0,0,-1);  
  
vector4 orient = dihedral(v0, vref);  
vector angle = qconvert(orient);  
  
//angle = degrees(angle)*-1;  
//v@angle = angle;


vector angle = quaterniontoeuler(orient, 0);  
angle = degrees(angle);