gamecreator Posted November 29, 2014 Share Posted November 29, 2014 I have a model with two materials. I would like to use Material::SetColor to set the color of the second one. How would I go about choosing the second material and setting its color? Also, why does this crash my program? model->GetMaterial()->SetColor(1, 0, 0); Is it because I have two materials on my model? Quote Link to comment Share on other sites More sharing options...
shadmar Posted November 29, 2014 Share Posted November 29, 2014 Do a model->GetSurface(1)->GetMaterial()->SetColor(..) 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
gamecreator Posted November 29, 2014 Author Share Posted November 29, 2014 Ah, thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.