Using Effects in a ANX game is similar to using effects in XNA, but there are some special cases which we had to adress. As ANX is RenderSystem independet and shaders are not interchangeable we needed a way to provide more than one shader within a effect file.

To use effect files you have to do three easy steps:

1. reference the ANX.Framework.ContentPipeline assembly in the content project (right click in visual studio on the content project and select add reference)
2. change the default XNA effect processor of each effect file (.fx) to the ANX effect processor (left click the effect in content project and select processor in the property browser)
3. select the OutputFormat in property browser to a value which matches the RenderSystem(s) you are planning to support

Last edited Nov 14, 2011 at 12:51 PM by Glatzemann, version 1

Comments

No comments yet.