adskScatter.h File Reference


Detailed Description

Scatter functions.

#include <shader.h>
#include <adskExport.h>
#include "adskShaderSDKNamespaceBegin.h"
#include "adskShaderSDKNamespaceEnd.h"

Include dependency graph for adskScatter.h:
This graph shows which files directly or indirectly include this file:

Functions

ADSK_SHADERSDK_EXPORT void  compute_scatter (miColor *resScatter, miColor *pScatterColor, miScalar *pScatterRadius, miInteger *pScatterAccuracy, miInteger *pScatterFalloff, miInteger *pScatterLimit, miInteger *pScatterCache, miScalar *pDiffuse, miColor *pColor, miScalar *pTranslucence, miScalar *pTranslucenceFocus, miScalar *pTranslucenceDepth, miVector *pNormalCamera, miColor *pIrradiance, miColor *pIrradianceColor, miState *state, void **scatterData)
  Compute the scatter for a given intersection.
ADSK_SHADERSDK_EXPORT void  destroy_scatter (miState *state, void **scatterData)
  Destroy scatter data.

Function Documentation

ADSK_SHADERSDK_EXPORT void compute_scatter ( miColor *  resScatter,
miColor *  pScatterColor,
miScalar *  pScatterRadius,
miInteger *  pScatterAccuracy,
miInteger *  pScatterFalloff,
miInteger *  pScatterLimit,
miInteger *  pScatterCache,
miScalar *  pDiffuse,
miColor *  pColor,
miScalar *  pTranslucence,
miScalar *  pTranslucenceFocus,
miScalar *  pTranslucenceDepth,
miVector *  pNormalCamera,
miColor *  pIrradiance,
miColor *  pIrradianceColor,
miState *  state,
void **  scatterData  
)

Compute the scatter for a given intersection.

Parameters:
[out]  resScatter  The resulting scatter color.
[in]  pScatterColor  The given scatter color.
[in]  pScatterRadius  The scatter radius.
[in]  pScatterAccuracy  The scatter accuracy.
[in]  pScatterFalloff  The scatter falloff.
[in]  pScatterLimit  The scatter limit.
[in]  pScatterCache  The scatter cache.
[in]  pDiffuse  The diffuse reflectivity of the material.
[in]  pColor  The color of the material.
[in]  pTranslucence  The translucence of the material.
[in]  pTranslucenceFocus  The translucence focus.
[in]  pTranslucenceDepth  The translucence depth.
[in]  pNormalCamera  The material normal in camera space.
[in]  pIrradiance  The incoming irradiance.
[in]  pIrradianceColor  The incoming irradiance color.
[in]  state  mental ray state
[in,out]  scatterData  The computed scatter data.

ADSK_SHADERSDK_EXPORT void destroy_scatter ( miState *  state,
void **  scatterData  
)

Destroy scatter data.

Parameters:
[in]  state  mental ray state
[in,out]  scatterData  The scatter data to destroy.

Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved. Generated with doxygen 1.5.6