KFbxSurfacePhong Class Reference

#include <kfbxsurfacephong.h>

Inherits KFbxSurfaceLambert.

Inheritance diagram for KFbxSurfacePhong:

Inheritance graph
List of all members.

Detailed Description

Material settings.

A material is attached to an instance of class KFbxGeometry by calling KFbxGeometry::AddMaterial(). Materials can be shared among many instances of class KFbxGeometry.

Definition at line 63 of file kfbxsurfacephong.h.

Material properties

KFbxProperty GetSpecularColor () const
 Get the specular color property.
KFbxProperty GetSpecularFactor () const
 Get the specular factor property.
KFbxProperty GetShininess () const
 Get the shininess property.
KFbxProperty GetReflectionColor () const
 Get the reflection color property.
KFbxProperty GetReflectionFactor () const
 Get the reflection factor property.

Deprecated KFbxMaterial interface.

Remarks:
These functions are provided to ease the transition to the new surface materials.


K_DEPRECATED bool SetDefaultSpecularColor (KFbxColor const &pColor)
 Set default material specular color.
K_DEPRECATED bool GetDefaultSpecularColor (KFbxColor &pColor) const
 Get default material specular color.
K_DEPRECATED bool SetDefaultShininess (double pShininess)
 Set default material shininess.
K_DEPRECATED bool GetDefaultShininess (double &pShininess) const
 Get default material shininess.
K_DEPRECATED bool SetDefaultReflectivity (double pReflectivity)
 Set default material reflectivity.
K_DEPRECATED bool GetDefaultReflectivity (double &pReflectivity) const
 Get default material reflectivity.


Member Function Documentation

KFbxProperty GetSpecularColor (  )  const

Get the specular color property.

KFbxProperty GetSpecularFactor (  )  const

Get the specular factor property.

This factor is used to attenuate the specular color.

KFbxProperty GetShininess (  )  const

Get the shininess property.

This property controls the aspect of the shiny spot. It is the specular exponent in the Phong illumination model.

KFbxProperty GetReflectionColor (  )  const

Get the reflection color property.

This property is used to implement reflection mapping.

KFbxProperty GetReflectionFactor (  )  const

Get the reflection factor property.

This property is used to attenuate the reflection color.

K_DEPRECATED bool SetDefaultSpecularColor ( KFbxColor const &  pColor  ) 

Set default material specular color.

Parameters:
pColor Material specular color.

K_DEPRECATED bool GetDefaultSpecularColor ( KFbxColor pColor  )  const

Get default material specular color.

Parameters:
pColor Material specular color.
Returns:
Input parameter filled with appropriate data.

K_DEPRECATED bool SetDefaultShininess ( double  pShininess  ) 

Set default material shininess.

Parameters:
pShininess Shininess value from 0 to 1, 0 meaning 100% matte.

K_DEPRECATED bool GetDefaultShininess ( double &  pShininess  )  const

Get default material shininess.

Returns:
The material shininess. The value is in the interval [0, 1], 0 meaning 100% matte.

K_DEPRECATED bool SetDefaultReflectivity ( double  pReflectivity  ) 

Set default material reflectivity.

Parameters:
pReflectivity Reflectivity value from 0 to 1, 0 meaning no reflectivity.

K_DEPRECATED bool GetDefaultReflectivity ( double &  pReflectivity  )  const

Get default material reflectivity.

Returns:
The material reflectivity. The value is in the interval [0,1], 0 meaning no reflectivity.