Is there any way to have the texture of a model loaded from a Png ?
I have a simple prism to test it on, but i just want to be able to edit an image and have the model's texture change.
Thanks!
|
|
You can use a png as a texture. First you have to add it to the game project content : http://msdn.microsoft.com/en-us/library/dd282477(v=XNAGameStudio.40).aspx And then you call Load method of ContentManager : http://msdn.microsoft.com/fr-FR/library/bb197848(v=XNAGameStudio.40).aspx You can access the ContentManager through the Content properties of Game class : |
|||||||||||
|