void Model3dView::OnStageConnection( int depth )
{
+ Control::OnStageConnection( depth );
+
CustomActor self = Self();
self.AddRenderer( mRenderer );
Image tex0 = ResourceImage::New( imgUrl );
if( tex0 )
{
- size_t index = mMaterial.AddTexture( tex0, "sDiffuse" );
- mMaterial.SetTextureAffectsTransparency(index, false );
+ mMaterial.AddTexture( tex0, "sDiffuse" );
}
}
Image tex1 = ResourceImage::New( imgUrl );
if (tex1)
{
- size_t index = mMaterial.AddTexture( tex1, "sNormal" );
- mMaterial.SetTextureAffectsTransparency(index, false );
+ mMaterial.AddTexture( tex1, "sNormal" );
}
}
Image tex2 = ResourceImage::New( imgUrl );
if( tex2 )
{
- size_t index = mMaterial.AddTexture( tex2, "sGloss" );
- mMaterial.SetTextureAffectsTransparency(index, false );
+ mMaterial.AddTexture( tex2, "sGloss" );
}
}
}