Where is the path when loading .fx file?
I have been tried when i was loading .fx file. The code that loading .fx was in main project folder and put the .fx file into main project path, and it success. But now i tried, the code in Lib project and put .fx file in my lib project path. It failed. So where actually?
Thanks.
EDIT: I use
D3DX10CreateEffectFromFile(L"File.fx", NULL, NULL, L"fx_4_0", D3D10_SHADER_ENABLE_STRICTNESS, 0, g_D3DDevice, NULL, NULL, &effectD3D, NULL, NULL);