Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | List of all members
PbrMedium Class Reference

Public Member Functions

 PbrMedium (const GMathVec3f &attenuation, const GMathVec3f &scattering_color, const float &scattering_anisotropy, ModuleMaterial *material, const ModuleSceneObject *scene_object)
 
const GMathVec3f & get_attenuation () const
 
const GMathVec3f & get_scattering_color () const
 
const float & get_scattering_anisotropy () const
 
GMathVec3f evaluate_transmittance (const double distance) const
 evaluate_transmittance Compute the transmittance of this medium with the distance based ob the Bee-Lambert relation (transmittance = exp(attenuation * distance))
 
ModuleMaterialget_material () const
 
const ModuleSceneObjectget_scene_object () const
 

Member Function Documentation

GMathVec3f PbrMedium::evaluate_transmittance ( const double  distance) const

evaluate_transmittance Compute the transmittance of this medium with the distance based ob the Bee-Lambert relation (transmittance = exp(attenuation * distance))

Parameters
distanceis the distance travelled by the ray in the medium
Returns
the transmittance