sprite - XNA SpriteBatch and BasicEffect not compatible? -
I want to control ambient light for the 2D SpriteBatch rendered graphics set at a global level. I realized that I could do it by inserting the color passed in SpriteBatch. Draws, but I want to do it globally.
The Basic Effect Shader Console for simple views sets the function pipeline style lights in XNA.
Is Basic Effect Shader And SpriteBatch Incompatible? Does anyone have to work together?
Yes, they are incompatible.
This is because Spreadbatch CAS uses its custom vertex shader to do the rendering of the tray. You can use your own custom pixel shader, and there is a sample on the XAna Creator's Club Education site that shows you how to use custom pixel shader effects with the spreadbatch.
Comments
Post a Comment