void CC3PODMeshNode::setMaterial( CC3PODMaterial* aMaterial ) { super::setMaterial( aMaterial ); if ( aMaterial ) { CC3PFXEffect* pEffect = aMaterial->getPfxEffect(); if ( pEffect ) pEffect->populateMeshNode( this ); } }
void CC3MeshNode::applyEffectNamedFromFile( const std::string& effectName, const std::string& filePath ) { CC3PFXEffect* pfxEffect = CC3PFXResource::getEffectNamedFromFile( effectName, filePath ); if ( pfxEffect ) { pfxEffect->populateMeshNode( this ); pfxEffect->populateMaterial( getMaterial() ); alignTextureUnits(); } super::applyEffectNamedFromFile( effectName, filePath ); }