# I3DExRefractionFeature Struct Reference
[External Interfaces]

Inheritance diagram for I3DExRefractionFeature:

List of all members.

## Public Member Functions
virtual MCCOMErr MCCOMAPI | CalcRefraction (RefractionIO &refractionIO, const LightingContext &lightingContext)=0
virtual MCCOMErr MCCOMAPI | CalcRefraction2 (RefractionIO &refractionIO, const LightingContext &lightingContext, TAbsorptionFunction *absorptionFunction)=0

## Detailed Description

A refraction feature controls the way refraction is calculated on an object. For instance, you could trace rays through the scene to determine the effect or directly get a value for a precalculated map...

## Member Function Documentation

virtual MCCOMErr MCCOMAPI I3DExRefractionFeature::CalcRefraction | ( | RefractionIO & | refractionIO,
|  | const LightingContext & | lightingContext |
| ) |  |  | `[pure virtual]`

Calculates the refraction given a particular lighting context (point, shading, incoming ray...)

Parameters:

  | refractionIO | Info used for refraction features
  | lightingContext | The ligthing context (point, shading, incoming ray...)

Implemented in TBasicRefractionFeature.

virtual MCCOMErr MCCOMAPI I3DExRefractionFeature::CalcRefraction2 | ( | RefractionIO & | refractionIO,
|  | const LightingContext & | lightingContext,
|  | TAbsorptionFunction * | absorptionFunction |
| ) |  |  | `[pure virtual]`

Calculates the refraction given a particular lighting context (point, shading, incoming ray...)

Parameters:

  | refractionIO | Info used for refraction features
  | lightingContext | The ligthing context (point, shading, incoming ray...)
  | absorptionFunction | The absorption function

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

- I3dExRenderFeature.h