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

IES angular emission. More...

Public Member Functions

bool init (const OfObject &object, double cone_half_angle, bool is_spot)
 Initialization of the parameters. Check if the filename is a tex file, get the UI parameters values.
double evaluate (const GMathVec3d &local_light_dir) const
 Evaluate the angular distribution for an IES Emission.
const double & get_mix () const
double get_scaled_max_colatitude () const
bool is_axially_symmetric () const

Detailed Description

IES angular emission.

This class initialises on a .tex or .ies file, handles scaling, mixing and different orientations for spot vs. sphere light.

Member Function Documentation

double IESEmission::evaluate ( const GMathVec3d &  local_light_dir) const

Evaluate the angular distribution for an IES Emission.

The local light direction is given in local space, pointing toward the surface position. As IES textures are single channel - or with the the same value on all the channels - we return only the R channel.