Handle(Prs3d_ShadingAspect) aShadingAspect = anAttributes->ShadingAspect();
if ( !aShadingAspect.IsNull() )
{
- Graphic3d_MaterialAspect aMatAspect;
- aMatAspect.SetAmbient( 1 );
- aMatAspect.SetDiffuse( 0 );
+ Graphic3d_MaterialAspect aMatAspect( Graphic3d_NOM_PLASTIC );
+ //aMatAspect.SetAmbient( 1 );
+ //aMatAspect.SetDiffuse( 0 );
aShadingAspect->Aspect()->SetFrontMaterial( aMatAspect );
aShadingAspect->Aspect()->SetBackMaterial( aMatAspect );