materials not working correctly - C#