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

Static Public Member Functions

static void evaluate_emission (const CtxEval &eval_ctx, CtxShader &shader_ctx, GMathVec3f &emission, const float *emission_weight=nullptr)
 
static void evaluate_emission (const ModuleLightPhysicalGeometry *light, const CtxEval &eval_ctx, CtxShader &shader_ctx, GMathVec3f &emission, const float *emission_weight=nullptr)
 
static void remove_intensity (GMathVec3f &color)
 Simple helper removing the intensity part of a color.
 

Member Function Documentation

void PbrEmissionHelpers::evaluate_emission ( const CtxEval eval_ctx,
CtxShader shader_ctx,
GMathVec3f &  emission,
const float *  emission_weight = nullptr 
)
static

Evaluate the emission on the current fragment according to the current scene object emission texture importance sampling mode

Parameters
emission_weightOptionnal emission weight cache to consider for the evaluation
void PbrEmissionHelpers::evaluate_emission ( const ModuleLightPhysicalGeometry light,
const CtxEval eval_ctx,
CtxShader shader_ctx,
GMathVec3f &  emission,
const float *  emission_weight = nullptr 
)
static

Evaluate the emission on the current fragment on a geometry light according to its emission texture importance sampling mode

Parameters
emission_weightOptionnal emission weight cache to consider for the evaluation