Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I have an XNA library that uses several custom effects. These effects need to be accessed by:

  1. A content pipeline project (models are built with the effect) and
  2. Projects that use my game library (they should be able to load a standalone instance of the effect).

Where should I put the .fx files for the custom effects, and how do I access them from the different projects?

share|improve this question
add comment

1 Answer

You can add the effects to a content project referenced by the game library project. I've done this for my own engine for effects, lighting textures, etc., that need to be accessible by both the engine and projects using the engine.

Simply add a new content project and make a content reference to it from the game library project. The effects will be built and embedded in the game library build and can be made accessible from outside the game library.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.