Hello everybody,

I've got several .fx files in my project. These .fx files all have the same lighting algorithm in common, so that I wanted to extract that algorithm to another file and include that one in the others.

The MS HLSL documentation said that I could use a simple #include "file.fx" command to do this or alternatively #include <file.fx> when the file is on a path passed as a command line argument to the HLSL compiler. As I don't have influence on the command line arguments I simply placed two files in the same directory and included one into the other with #include "file2.fx". However, the compiler throws an error message he cannot find the included file.

Is there anything specific I have to take care of in GameStudio?


Always learn from history, to be sure you make the same mistakes again...