XNA Creators Club Online
Page 1 of 1 (2 items)
Sort Posts: Previous Next

How to draw model using its vertex colors without BasicEffect

Last post 09/07/2009 11:21 by Kyle W. 1 replies.
  • 09/07/2009 6:54

    How to draw model using its vertex colors without BasicEffect

    Hi.  My game already has drawing code in place that uses a lighting effect file (modified from the one included with the Picktures mini-game).  I'd like to enable the drawing of some of my models using vertex colors in the model but all I seem to be able to find on the net or in Search is the .VertexColorEnabled parameter for BasicEffect.

    Can someone please inform me how to go about enabling vertex colors with a custom effect file.

    Thank you.
    Download on XBox Live Now: Scare Me

    BASIC Programming Tutorial
  • 09/07/2009 11:21 In reply to

    Re: How to draw model using its vertex colors without BasicEffect

    I don't know how to do it off of the top of my head, but the source code for the BasicEffect shader is provided on the site. I'm sure if you study it, you can figure out how to do it:

    http://creators.xna.com/en-US/utilities/basiceffectshader

Page 1 of 1 (2 items) Previous Next