RenderMan  26.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
RixLight::GenerateSamplesResults Struct Reference

GenerateSamples() Generate samples, using data from the RixLightContext object: More...

#include <RixLight.h>

Public Attributes

int & patchIndex
 
RtFloat3 & UVW
 
RtVector3 & direction
 
float & distance
 
float & pdfDirect
 
bool const isBidirectional
 
float & pdfEmit
 
float & pdfEmitDirection
 
float & solidAngleToArea
 
RtColorRGB diffuseColor
 
RtColorRGB specularColor
 
RtNormal3 & normal
 

Detailed Description

GenerateSamples() Generate samples, using data from the RixLightContext object:

  • random numbers are provided by GetSample2D()
  • surface information of the shading point
  • matrix to transform from the light's local space to the space of the shaded point The light must set all members of the result struct, else the sample is considered invalid.

Member Data Documentation

RtColorRGB RixLight::GenerateSamplesResults::diffuseColor
RtVector3& RixLight::GenerateSamplesResults::direction
float& RixLight::GenerateSamplesResults::distance
bool const RixLight::GenerateSamplesResults::isBidirectional
RtNormal3& RixLight::GenerateSamplesResults::normal
int& RixLight::GenerateSamplesResults::patchIndex
float& RixLight::GenerateSamplesResults::pdfDirect
float& RixLight::GenerateSamplesResults::pdfEmit
float& RixLight::GenerateSamplesResults::pdfEmitDirection
float& RixLight::GenerateSamplesResults::solidAngleToArea
RtColorRGB RixLight::GenerateSamplesResults::specularColor
RtFloat3& RixLight::GenerateSamplesResults::UVW

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