![]() |
RenderMan
26.0
|
RixLight This base class defines the interface for light sources. More...
#include <RixLight.h>
Inherited by RixGeometricLight.
Classes | |
struct | EvaluateEmissionForCameraResults |
Generate the color for lights visible to the camera. More... | |
struct | EvaluateSamplesResults |
EvaluateSamples Given surface information, q, and ray hit information on this light source wo, distance, and the parametric coordinates u,v evaluate the bxdf associated with the light's contribution and return the pdfDirect value. More... | |
struct | GenerateEmissionResults |
Generate a sample on a light for photon emission. More... | |
struct | GenerateSamplesResults |
GenerateSamples() Generate samples, using data from the RixLightContext object: More... | |
struct | RixSamplePoint |
struct | RixScatterPoint |
Public Member Functions | |
RixLight (RixLightFactory const *lightFactory, Type type) | |
virtual | ~RixLight () |
bool | IsLocal () const |
bool | IsInfinite () const |
virtual RixSCDetail | GetProperty (LightProperty prop, void const **result) const =0 |
virtual void | GetBounds (int &nPoints, RtPoint3 const *&points) const =0 |
virtual bool | Intersect (bool isTransmissionRay, float const rayTime, RtPoint3 const &rayOrigin, RtVector3 const &rayDirection, float &hitDistance, float &u, float &v, float &w, RtPoint3 &hitP, RtNormal3 &hitNn) const =0 |
virtual float | GetIncidentRadianceEstimate (RtPoint3 const &P, RtMatrix4x4 const &lightToCurrent, RtMatrix4x4 const ¤tToLight) const =0 |
GetIncidentRadianceEstimate Returns an estimate of the radiance this light will return for a shading point. More... | |
virtual float | GetIncidentRadianceEstimate (RtPoint3 const &segmentOrigin, RtVector3 const &segmentDir, float segmentLen, RtMatrix4x4 const &lightToCurrent, RtMatrix4x4 const ¤tToLight, RtFloat &minT, RtFloat &maxT) const =0 |
GetIncidentRadiancEstimate Returns an estimate of the radiance this light will return for a segment, along with a min and max t that represent the subsection of the segment that intersects the light's frustum, if it has one. More... | |
virtual float | GetPowerEstimate (RtMatrix4x4 const &xform) const =0 |
GetPowerEstimate Returns an estimate of the power emitted by this light. More... | |
virtual void | GenerateSamples (RixLightContext const &lCtx, RixScatterPoint const &scatter, GenerateSamplesResults &results) const =0 |
virtual void | EvaluateSamples (RixLightContext const &lCtx, RixSamplePoint const &sample, RixScatterPoint const &scatter, EvaluateSamplesResults &results) const =0 |
virtual void | GenerateEmission (RixLightContext const &lCtx, GenerateEmissionResults &results) const =0 |
virtual void | EvaluateEmissionForCamera (RixLightContext const &lCtx, RixSamplePoint const &sample, RixScatterPoint const &scatter, EvaluateEmissionForCameraResults &results) const =0 |
virtual RixLight * | Edit (RixContext &ctx, RtUString const name, RixParameterList const *pList, void *instanceData)=0 |
Protected Attributes | |
RixLightFactory const * | m_lightFactory |
RixLight This base class defines the interface for light sources.
enum RixLight::Type |
|
inline |
|
inlinevirtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
GetIncidentRadianceEstimate Returns an estimate of the radiance this light will return for a shading point.
This is used by localisation schemes to optionally adjust the importance associated with the light source relative to other light sources. As such, it should be an estimate that is very quick to compute.
|
pure virtual |
GetIncidentRadiancEstimate Returns an estimate of the radiance this light will return for a segment, along with a min and max t that represent the subsection of the segment that intersects the light's frustum, if it has one.
Dir and segmentLen are normalized direction and segment length This case is used during volume integration.
|
pure virtual |
GetPowerEstimate Returns an estimate of the power emitted by this light.
This is used by localisation schemes to optionally adjust the importance associated with the light source relative to other light sources. As such, it should be an estimate that is very quick to compute.
|
pure virtual |
|
pure virtual |
|
inline |
References k_RixInfinite.
|
inline |
References k_RixLocal.
|
protected |