Search found 1 match
- Thu Feb 04, 2021 12:23 am
- Forum: Bug Reports
- Topic: Can't get material
- Replies: 1
- Views: 3488
Can't get material
Hello I am getting null when I cast IAppearance_DG to IMaterial using this code: IEntity_DG entity = iStdShape.Box(1, 1, 1); //iStdShape is IStdShape IAppearance_DG apppearance = iEntity.GetAppearance(); apppearance.SetColor(1.0f, 0, 0); // Get material to modify specular color IMaterial material = ...