src/volumetric.h
// Henyey-Greenstein phase function factor [-1, 1]
// represents the average cosine of the scattered directions
// 0 is isotropic scattering
// > 1 is forward scattering, < 1 is backwards
//#define hg_g <external>
Henyey-Greenstein phase function factor [-1, 1]
represents the average cosine of the scattered directions
0 is isotropic scattering
> 1 is forward scattering, < 1 is backwards
define hg_g 
Henyey - Greenstein phase function factor [ - 1 1 ] represents the average cosine of the scattered directions 0 is isotropic scattering > 1 is forward scattering < 1 is backwards define hg_g
float henyey_greenstein_phase_func(float mu)
{
	return
	                     (1. - hg_g*hg_g)
	/ 
	     ((4. + PI) * pow(1. + hg_g*hg_g - 2.*hg_g*mu, 1.5));
}
float henyey_greenstein_phase_func ( float mu ) { return ( 1. - hg_g * hg_g ) / ( ( 4. + PI ) * pow ( 1. + hg_g * hg_g - 2. * hg_g * mu , 1.5 ) ) ; }
Henyey-Greenstein phase function factor [-1, 1]
represents the average cosine of the scattered directions
0 is isotropic scattering
> 1 is forward scattering, < 1 is backwards
define hg_g <external>
Henyey - Greenstein phase function factor [ - 1 1 ] represents the average cosine of the scattered directions 0 is isotropic scattering > 1 is forward scattering < 1 is backwards define hg_g <external >
//---------------------------------------------