Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::FresnelMaterial Class Reference

FresnelMaterial class. See PageKernelFresnelMaterial for a description.

#include <OSGFresnelMaterial.h>

Inheritance diagram for osg::FresnelMaterial:

osg::FresnelMaterialBase osg::ChunkMaterial osg::ChunkMaterialBase osg::Material osg::MaterialBase osg::AttachmentContainer osg::FieldContainer List of all members.

Rendering

StatePtr getState (void)
*typedef TypedFunctor1Base<
Action::ResultE, PtrCallArg<
DrawActionBase > > 
DrawFunctor

Public Types

typedef FresnelMaterialPtr Ptr
enum  {
  AmbientFieldId = Inherited::NextFieldId, DiffuseFieldId = AmbientFieldId + 1, SpecularFieldId = DiffuseFieldId + 1, ShininessFieldId = SpecularFieldId + 1,
  EmissionFieldId = ShininessFieldId + 1, TransparencyFieldId = EmissionFieldId + 1, LitFieldId = TransparencyFieldId + 1, ColorMaterialFieldId = LitFieldId + 1,
  IndexFieldId = ColorMaterialFieldId + 1, ScaleFieldId = IndexFieldId + 1, BiasFieldId = ScaleFieldId + 1, ImageFieldId = BiasFieldId + 1,
  NextFieldId = ImageFieldId + 1
}

Public Member Functions

Sync
*virtual void changed (BitVector whichField, UInt32 origin)
Output
*virtual void dump (UInt32 uiIndent=0, const BitVector bvFlags=0) const
virtual StatePtr makeState (void)
virtual void rebuildState (void)
virtual bool isTransparent (void) const
Texture specific
*void setImage (ImagePtr &pImage)
FieldContainer Get
*virtual FieldContainerTypegetType (void)
virtual const FieldContainerTypegetType (void) const
virtual UInt32 getContainerSize (void) const
Field Get
*SFColor3fgetSFAmbient (void)
 Get the FresnelMaterial::_sfAmbient field.
SFColor3fgetSFDiffuse (void)
 Get the FresnelMaterial::_sfDiffuse field.
SFColor3fgetSFSpecular (void)
 Get the FresnelMaterial::_sfSpecular field.
SFReal32getSFShininess (void)
 Get the FresnelMaterial::_sfShininess field.
SFColor3fgetSFEmission (void)
 Get the FresnelMaterial::_sfEmission field.
SFReal32getSFTransparency (void)
 Get the FresnelMaterial::_sfTransparency field.
SFBoolgetSFLit (void)
 Get the FresnelMaterial::_sfLit field.
SFGLenumgetSFColorMaterial (void)
 Get the FresnelMaterial::_sfColorMaterial field.
SFReal32getSFIndex (void)
 Get the FresnelMaterial::_sfIndex field.
SFReal32getSFScale (void)
 Get the FresnelMaterial::_sfScale field.
SFReal32getSFBias (void)
 Get the FresnelMaterial::_sfBias field.
SFImagePtrgetSFImage (void)
 Get the FresnelMaterial::_sfImage field.
Color3fgetAmbient (void)
 Get the value of the FresnelMaterial::_sfAmbient field.
const Color3fgetAmbient (void) const
 Get the value of the FresnelMaterial::_sfAmbient field.
Color3fgetDiffuse (void)
 Get the value of the FresnelMaterial::_sfDiffuse field.
const Color3fgetDiffuse (void) const
 Get the value of the FresnelMaterial::_sfDiffuse field.
Color3fgetSpecular (void)
 Get the value of the FresnelMaterial::_sfSpecular field.
const Color3fgetSpecular (void) const
 Get the value of the FresnelMaterial::_sfSpecular field.
Real32getShininess (void)
 Get the value of the FresnelMaterial::_sfShininess field.
const Real32getShininess (void) const
 Get the value of the FresnelMaterial::_sfShininess field.
Color3fgetEmission (void)
 Get the value of the FresnelMaterial::_sfEmission field.
const Color3fgetEmission (void) const
 Get the value of the FresnelMaterial::_sfEmission field.
Real32getTransparency (void)
 Get the value of the FresnelMaterial::_sfTransparency field.
const Real32getTransparency (void) const
 Get the value of the FresnelMaterial::_sfTransparency field.
bool & getLit (void)
 Get the value of the FresnelMaterial::_sfLit field.
const bool & getLit (void) const
 Get the value of the FresnelMaterial::_sfLit field.
GLenumgetColorMaterial (void)
 Get the value of the FresnelMaterial::_sfColorMaterial field.
const GLenumgetColorMaterial (void) const
 Get the value of the FresnelMaterial::_sfColorMaterial field.
Real32getIndex (void)
 Get the value of the FresnelMaterial::_sfIndex field.
const Real32getIndex (void) const
 Get the value of the FresnelMaterial::_sfIndex field.
Real32getScale (void)
 Get the value of the FresnelMaterial::_sfScale field.
const Real32getScale (void) const
 Get the value of the FresnelMaterial::_sfScale field.
Real32getBias (void)
 Get the value of the FresnelMaterial::_sfBias field.
const Real32getBias (void) const
 Get the value of the FresnelMaterial::_sfBias field.
ImagePtrgetImage (void)
 Get the value of the FresnelMaterial::_sfImage field.
const ImagePtrgetImage (void) const
 Get the value of the FresnelMaterial::_sfImage field.
Field Set
*void setAmbient (const Color3f &value)
 Set the value of the FresnelMaterial::_sfAmbient field.
void setDiffuse (const Color3f &value)
 Set the value of the FresnelMaterial::_sfDiffuse field.
void setSpecular (const Color3f &value)
 Set the value of the FresnelMaterial::_sfSpecular field.
void setShininess (const Real32 &value)
 Set the value of the FresnelMaterial::_sfShininess field.
void setEmission (const Color3f &value)
 Set the value of the FresnelMaterial::_sfEmission field.
void setTransparency (const Real32 &value)
 Set the value of the FresnelMaterial::_sfTransparency field.
void setLit (const bool &value)
 Set the value of the FresnelMaterial::_sfLit field.
void setColorMaterial (const GLenum &value)
 Set the value of the FresnelMaterial::_sfColorMaterial field.
void setIndex (const Real32 &value)
 Set the value of the FresnelMaterial::_sfIndex field.
void setScale (const Real32 &value)
 Set the value of the FresnelMaterial::_sfScale field.
void setBias (const Real32 &value)
 Set the value of the FresnelMaterial::_sfBias field.
void setImage (const ImagePtr &value)
 Set the value of the FresnelMaterial::_sfImage field.
Binary Access
*virtual UInt32 getBinSize (const BitVector &whichField)
virtual void copyToBin (BinaryDataHandler &pMem, const BitVector &whichField)
virtual void copyFromBin (BinaryDataHandler &pMem, const BitVector &whichField)
Copy
*virtual FieldContainerPtr shallowCopy (void) const
Rendering
*virtual void draw (DrawFunctor &func, DrawActionBase *action)
virtual void draw (Geometry *geo, DrawActionBase *action)
Access
*bool addChunk (StateChunkPtr chunk, Int32 slot=State::AutoSlotReplace)
bool subChunk (StateChunkPtr chunk, Int32 slot=State::AutoSlotReplace)
Int32 find (StateChunkPtr chunk)
StateChunkPtr find (const FieldContainerType &type, Int32 slot=State::AutoSlotReplace)
virtual bool operator== (const Material &other)
Comparison
virtual bool operator== (const Material &other) const
*virtual bool operator< (const Material &other) const
virtual bool operator!= (const Material &other) const
Field Get
*MFStateChunkPtrgetMFChunks (void)
 Get the ChunkMaterial::_mfChunks field.
MFInt32getMFSlots (void)
 Get the ChunkMaterial::_mfSlots field.
StateChunkPtrgetChunks (const UInt32 index)
 Get the value of the index element the ChunkMaterial::_mfChunks field.
MFStateChunkPtrgetChunks (void)
 Get the ChunkMaterial::_mfChunks field.
const MFStateChunkPtrgetChunks (void) const
 Get the ChunkMaterial::_mfChunks field.
Int32getSlots (const UInt32 index)
 Get the value of the index element the ChunkMaterial::_mfSlots field.
MFInt32getSlots (void)
 Get the ChunkMaterial::_mfSlots field.
const MFInt32getSlots (void) const
 Get the ChunkMaterial::_mfSlots field.
Field Get
*SFInt32getSFSortKey (void)
 Get the Material::_sfSortKey field.
Int32getSortKey (void)
 Get the value of the Material::_sfSortKey field.
const Int32getSortKey (void) const
 Get the value of the Material::_sfSortKey field.
Field Set
*void setSortKey (const Int32 &value)
 Set the value of the Material::_sfSortKey field.

Static Public Member Functions

Class Get
*static FieldContainerTypegetClassType (void)
 access the type of the class
static UInt32 getClassTypeId (void)
 access the numerical type of the class
Construction
*static FresnelMaterialPtr create (void)
 create a new instance of the class
static FresnelMaterialPtr createEmpty (void)
 create an empty new instance of the class, do not copy the prototype
Class Get
*static const char * getClassname (void)

Static Public Attributes

static const osg::BitVector AmbientFieldMask
static const osg::BitVector DiffuseFieldMask
static const osg::BitVector SpecularFieldMask
static const osg::BitVector ShininessFieldMask
static const osg::BitVector EmissionFieldMask
static const osg::BitVector TransparencyFieldMask
static const osg::BitVector LitFieldMask
static const osg::BitVector ColorMaterialFieldMask
static const osg::BitVector IndexFieldMask
static const osg::BitVector ScaleFieldMask
static const osg::BitVector BiasFieldMask
static const osg::BitVector ImageFieldMask
static const osg::BitVector MTInfluenceMask
static const osg::BitVector ChunksFieldMask
static const osg::BitVector SlotsFieldMask
static const osg::BitVector SortKeyFieldMask
static const BitVector AttachmentsFieldMask
static const BitVector NextFieldMask
Constants
*static const Int32 NoStateSorting = 0x7fffffff

Protected Member Functions

Constructors
FresnelMaterial (void)
 FresnelMaterial (const FresnelMaterial &source)
Destructors
*virtual ~FresnelMaterial (void)
Sync
*void executeSyncImpl (FresnelMaterialBase *pOther, const BitVector &whichField)
virtual void executeSync (FieldContainer &other, const BitVector &whichField)
Sync
*void executeSyncImpl (ChunkMaterialBase *pOther, const BitVector &whichField)
Sync
*void executeSyncImpl (MaterialBase *pOther, const BitVector &whichField)

Protected Attributes

StatePtr _pState
Fields
*SFColor3f _sfAmbient
SFColor3f _sfDiffuse
SFColor3f _sfSpecular
SFReal32 _sfShininess
SFColor3f _sfEmission
SFReal32 _sfTransparency
SFBool _sfLit
SFGLenum _sfColorMaterial
SFReal32 _sfIndex
SFReal32 _sfScale
SFReal32 _sfBias
SFImagePtr _sfImage
Fields
*MFStateChunkPtr _mfChunks
MFInt32 _mfSlots
Fields
*SFInt32 _sfSortKey

Private Types

typedef FresnelMaterialBase Inherited

Private Member Functions

void prepareLocalChunks (void)
void updateFresnel (void)
void operator= (const FresnelMaterial &source)

Static Private Member Functions

static void initMethod (void)

Private Attributes

MaterialChunkPtr _materialChunk
TextureChunkPtr _textureChunk
TexGenChunkPtr _texGenChunk
BlendChunkPtr _blendChunk
ImagePtr _img

Friends

class FieldContainer
class FresnelMaterialBase

Detailed Description

Definition at line 60 of file OSGFresnelMaterial.h.


Member Typedef Documentation

typedef FresnelMaterialBase osg::FresnelMaterial::Inherited [private]
 

Reimplemented from osg::FresnelMaterialBase.

Definition at line 64 of file OSGFresnelMaterial.h.

typedef FresnelMaterialPtr osg::FresnelMaterialBase::Ptr [inherited]
 

Reimplemented from osg::ChunkMaterialBase.

Definition at line 101 of file OSGFresnelMaterialBase.h.


Member Enumeration Documentation

anonymous enum [inherited]
 

Enumerator:
AmbientFieldId 
DiffuseFieldId 
SpecularFieldId 
ShininessFieldId 
EmissionFieldId 
TransparencyFieldId 
LitFieldId 
ColorMaterialFieldId 
IndexFieldId 
ScaleFieldId 
BiasFieldId 
ImageFieldId 
NextFieldId 

Reimplemented from osg::ChunkMaterialBase.

Definition at line 103 of file OSGFresnelMaterialBase.h.

00104     {
00105         AmbientFieldId       = Inherited::NextFieldId,
00106         DiffuseFieldId       = AmbientFieldId       + 1,
00107         SpecularFieldId      = DiffuseFieldId       + 1,
00108         ShininessFieldId     = SpecularFieldId      + 1,
00109         EmissionFieldId      = ShininessFieldId     + 1,
00110         TransparencyFieldId  = EmissionFieldId      + 1,
00111         LitFieldId           = TransparencyFieldId  + 1,
00112         ColorMaterialFieldId = LitFieldId           + 1,
00113         IndexFieldId         = ColorMaterialFieldId + 1,
00114         ScaleFieldId         = IndexFieldId         + 1,
00115         BiasFieldId          = ScaleFieldId         + 1,
00116         ImageFieldId         = BiasFieldId          + 1,
00117         NextFieldId          = ImageFieldId         + 1
00118     };


Constructor & Destructor Documentation

FresnelMaterial::FresnelMaterial void   )  [protected]
 

Definition at line 81 of file OSGFresnelMaterial.cpp.

00081                                      :
00082     Inherited(),
00083     _materialChunk(NullFC),
00084     _textureChunk(NullFC),
00085     _texGenChunk(NullFC),
00086     _blendChunk(NullFC),
00087     _img(NullFC)
00088 {
00089 }

FresnelMaterial::FresnelMaterial const FresnelMaterial source  )  [protected]
 

Definition at line 91 of file OSGFresnelMaterial.cpp.

00091                                                               :
00092     Inherited(source),
00093     _materialChunk(source._materialChunk),
00094     _textureChunk(source._textureChunk),
00095     _texGenChunk(source._texGenChunk),
00096     _blendChunk(source._blendChunk),
00097     _img(source._img)
00098 {
00099 }

FresnelMaterial::~FresnelMaterial void   )  [protected, virtual]
 

Definition at line 101 of file OSGFresnelMaterial.cpp.

References _blendChunk, _img, _materialChunk, osg::FresnelMaterialBase::_sfImage, _texGenChunk, _textureChunk, osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::NullFC, and osg::subRefCP().

00102 {
00103     if(_sfImage.getValue() != NullFC)
00104         subRefCP(_sfImage.getValue());
00105 
00106     subRefCP(_materialChunk);
00107     subRefCP(_textureChunk);
00108     subRefCP(_texGenChunk);
00109     subRefCP(_blendChunk);
00110     subRefCP(_img);
00111 }


Member Function Documentation

void FresnelMaterial::changed BitVector  whichField,
UInt32  origin
[virtual]
 

Reimplemented from osg::ChunkMaterial.

Definition at line 225 of file OSGFresnelMaterial.cpp.

References _img, osg::FresnelMaterialBase::_sfImage, _textureChunk, osg::ChangedOrigin::Abstract, osg::ChangedOrigin::AbstrIncRefCount, osg::addRefCP(), osg::beginEditCP(), osg::FresnelMaterialBase::BiasFieldMask, osg::ChunkMaterial::changed(), osg::endEditCP(), osg::FresnelMaterialBase::getImage(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::TextureChunkBase::ImageFieldMask, osg::FresnelMaterialBase::ImageFieldMask, osg::FresnelMaterialBase::IndexFieldMask, osg::NullFC, osg::Image::OSG_RGBA_PF, prepareLocalChunks(), osg::FresnelMaterialBase::ScaleFieldMask, setImage(), osg::SField< FieldTypeT, fieldNameSpace >::setValue(), and updateFresnel().

00226 {
00227     prepareLocalChunks();
00228 
00229     if(whichField & ImageFieldMask)
00230     {
00231         if(origin & ChangedOrigin::Abstract)
00232         {
00233             if(origin & ChangedOrigin::AbstrIncRefCount)
00234             {
00235                 addRefCP(_sfImage.getValue());
00236             }
00237             else
00238             {
00239                 ImagePtr pImage = _sfImage.getValue();
00240 
00241                 _sfImage.setValue(NullFC);
00242 
00243                 setImage(pImage);
00244             }
00245         }
00246         
00247         if(getImage() != NullFC)
00248         {
00249             beginEditCP(_img);
00250                 _img->set(Image::OSG_RGBA_PF, getImage()->getWidth(), getImage()->getHeight());
00251             endEditCP(_img);
00252             
00253             beginEditCP(_textureChunk, TextureChunk::ImageFieldMask);
00254                 _textureChunk->setImage(_img);
00255             endEditCP(_textureChunk, TextureChunk::ImageFieldMask);
00256         }
00257     }
00258     
00259     if((whichField & ImageFieldMask) ||
00260        (whichField & IndexFieldMask) ||
00261        (whichField & ScaleFieldMask) ||
00262        (whichField & BiasFieldMask))
00263     {
00264         updateFresnel();
00265     }
00266     
00267     Inherited::changed(whichField, origin);
00268 }

void FresnelMaterial::dump UInt32  uiIndent = 0,
const BitVector  bvFlags = 0
const [virtual]
 

Reimplemented from osg::ChunkMaterial.

Definition at line 270 of file OSGFresnelMaterial.cpp.

References SLOG.

00272 {
00273     SLOG << "Dump FresnelMaterial NI" << std::endl;
00274 }

StatePtr FresnelMaterial::makeState void   )  [virtual]
 

Create a osg::State that represents this Material and return it.

Reimplemented from osg::ChunkMaterial.

Definition at line 276 of file OSGFresnelMaterial.cpp.

References _blendChunk, _materialChunk, osg::ChunkMaterialBase::_mfChunks, _texGenChunk, _textureChunk, osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::beginEditCP(), osg::StateBase::create(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::endEditCP(), osg::FresnelMaterialBase::getAmbient(), osg::FresnelMaterialBase::getColorMaterial(), osg::FresnelMaterialBase::getDiffuse(), osg::FresnelMaterialBase::getEmission(), osg::FresnelMaterialBase::getLit(), osg::FresnelMaterialBase::getShininess(), osg::FresnelMaterialBase::getSpecular(), osg::FresnelMaterialBase::getTransparency(), isTransparent(), prepareLocalChunks(), and osg::Color4< ValueTypeT >::setValuesRGBA().

00277 {
00278     StatePtr state = State::create();
00279     
00280     Color3f v3;
00281     Color4f v4;
00282     float alpha = 1.f - getTransparency();
00283     
00284     prepareLocalChunks();
00285     
00286     beginEditCP(_materialChunk);
00287          v3 = getAmbient(); 
00288          v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00289         _materialChunk->setAmbient(v4);
00290 
00291          v3 = getDiffuse(); 
00292          v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00293         _materialChunk->setDiffuse(v4);
00294 
00295          v3 = getSpecular(); 
00296          v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00297         _materialChunk->setSpecular(v4);
00298 
00299         _materialChunk->setShininess(getShininess());
00300 
00301          v3 = getEmission(); 
00302          v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00303         _materialChunk->setEmission(v4);
00304         
00305         _materialChunk->setLit(getLit());
00306         _materialChunk->setColorMaterial(getColorMaterial());
00307     endEditCP  (_materialChunk);
00308     
00309     state->addChunk(_materialChunk);
00310     state->addChunk(_textureChunk);
00311     state->addChunk(_texGenChunk);
00312 
00313     if(isTransparent())
00314         state->addChunk(_blendChunk);
00315     
00316     for(MFStateChunkPtr::iterator i  = _mfChunks.begin();
00317                                   i != _mfChunks.end(); 
00318                                 ++i)
00319     {
00320         state->addChunk(*i);
00321     }
00322 
00323     return state;
00324 }

void FresnelMaterial::rebuildState void   )  [virtual]
 

Rebuild the internal State. Just collects the chunks in the State.

Reimplemented from osg::ChunkMaterial.

Definition at line 326 of file OSGFresnelMaterial.cpp.

References _blendChunk, _materialChunk, osg::ChunkMaterialBase::_mfChunks, osg::Material::_pState, _texGenChunk, _textureChunk, osg::addRefCP(), osg::MField< FieldTypeT, fieldNameSpace >::begin(), osg::beginEditCP(), osg::StateBase::create(), osg::MField< FieldTypeT, fieldNameSpace >::end(), osg::endEditCP(), osg::FresnelMaterialBase::getAmbient(), osg::FresnelMaterialBase::getColorMaterial(), osg::FresnelMaterialBase::getDiffuse(), osg::FresnelMaterialBase::getEmission(), osg::FresnelMaterialBase::getLit(), osg::FresnelMaterialBase::getShininess(), osg::FresnelMaterialBase::getSpecular(), osg::FresnelMaterialBase::getTransparency(), isTransparent(), osg::NullFC, prepareLocalChunks(), and osg::Color4< ValueTypeT >::setValuesRGBA().

00327 {
00328     Color3f v3;
00329     Color4f v4;
00330     Real32  alpha = 1.f - getTransparency();
00331 
00332     if(_pState != NullFC)
00333     {
00334         _pState->clearChunks();
00335     }
00336     else
00337     {
00338         _pState = State::create();
00339 
00340         addRefCP(_pState);
00341     }
00342 
00343     prepareLocalChunks();
00344 
00345     beginEditCP(_materialChunk);
00346         v3 = getAmbient();
00347         v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00348 
00349         _materialChunk->setAmbient(v4);
00350 
00351         v3 = getDiffuse();
00352         v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00353         
00354         _materialChunk->setDiffuse(v4);
00355         
00356         v3 = getSpecular();
00357         v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00358         
00359         _materialChunk->setSpecular(v4);
00360         
00361         _materialChunk->setShininess(getShininess());
00362         
00363         v3 = getEmission();
00364         v4.setValuesRGBA(v3[0], v3[1], v3[2], alpha);
00365         
00366         _materialChunk->setEmission(v4);
00367         
00368         _materialChunk->setLit(getLit());
00369         _materialChunk->setColorMaterial(getColorMaterial());
00370     endEditCP  (_materialChunk);
00371     
00372     _pState->addChunk(_materialChunk);
00373     _pState->addChunk(_textureChunk);
00374     _pState->addChunk(_texGenChunk);
00375     
00376     if(isTransparent())
00377         _pState->addChunk(_blendChunk);
00378     
00379     for(MFStateChunkPtr::iterator i  = _mfChunks.begin();
00380                                   i != _mfChunks.end(); 
00381                                 ++i)
00382     {
00383         _pState->addChunk(*i);
00384     }
00385 }

bool FresnelMaterial::isTransparent void   )  const [virtual]
 

Check if the Material (i.e. any of its chunks) is transparent..

Reimplemented from osg::ChunkMaterial.

Definition at line 387 of file OSGFresnelMaterial.cpp.

References osg::Eps, osg::FresnelMaterialBase::getTransparency(), and osg::ChunkMaterial::isTransparent().

Referenced by makeState(), and rebuildState().

00388 {
00389     return ((getTransparency() > Eps) || (Inherited::isTransparent()));
00390 }

void osg::FresnelMaterial::setImage ImagePtr pImage  )  [inline]
 

Definition at line 46 of file OSGFresnelMaterial.inl.

References osg::FresnelMaterialBase::_sfImage, osg::addRefCP(), osg::SField< FieldTypeT, fieldNameSpace >::getValue(), osg::SField< FieldTypeT, fieldNameSpace >::setValue(), and osg::subRefCP().

Referenced by changed().

00047 {
00048      addRefCP(pImage);
00049 
00050      subRefCP(_sfImage.getValue());
00051 
00052     _sfImage.setValue(pImage);
00053 }

void FresnelMaterial::prepareLocalChunks void   )  [private]
 

Definition at line 113 of file OSGFresnelMaterial.cpp.

References _blendChunk, _img, _materialChunk, _texGenChunk, _textureChunk, osg::addRefCP(), osg::beginEditCP(), osg::BlendChunkBase::create(), osg::TexGenChunkBase::create(), osg::TextureChunkBase::create(), osg::MaterialChunkBase::create(), osg::ImageBase::create(), osg::endEditCP(), osg::NullFC, and osg::Image::OSG_RGBA_PF.

Referenced by changed(), makeState(), and