My problem is that, if I use BasicEffect (and setup VertexColorEnabled = true) or my own shader, and use only colored (not textured!) models, it gives the error that Color0 is missing…Isn’t it weird that .fbx models do not come with COLOR0 channel ?
My problem is that, if I use BasicEffect (and setup VertexColorEnabled = true) or
Share
Here is what I found….. (Marshall Belew @ forums.create.msdn.com/forums/p/16066/553792.aspx#553792) Saved my day…
The solution is simple: the BasicShader has a DiffuseColor property. I merely added a new field into the Toon shader, and any time there was no texture, I substituted the color value.
I am happier with this solution because now I don’t have to write a ton of vertex declaration / draw primitive logic.
From the .fx file:
Replacing the effects (this is a modified snipet from the NonPhotoRealistic sample).