Arty
Public Member Functions | Public Attributes | List of all members
DirectLightingSample Struct Reference

Result from sampling direct lighting from a light source. More...

#include <lights.h>

Public Member Functions

 DirectLightingSample (const float3 &p, const rgb &i, float pa, float pd, float c)
 

Public Attributes

float3 pos
 Position on the light source.
 
rgb intensity
 Intensity along the direction.
 
float pdf_area
 Probability to sample the point on the light.
 
float pdf_dir
 Probability to sample the direction using emission sampling.
 
float cos
 Cosine between the direction and the light source geometry.
 

Detailed Description

Result from sampling direct lighting from a light source.


The documentation for this struct was generated from the following file: