AuthorTopic: fx files (Read 3692 times)

hey,i've finally managed to compile 1.8.10 and played a little with the rendering functions to include the addition of reading and using .FX files.the pixel shader part works ok, but the vertex shader doesnt' do anything at all to the rendered model! as if there's somewhere that overrides the vertex shader that i couldn't find. any ideas?

once it work i will share my code changes.i'll also appreciate help in uderstanding how to incorporate the .FX file name into the ACT3d file instead of being hardcoded in my .cpp file like it is today.

As for act3d file - generally speaking, you'll want to be able to assign different materials (= fx files) to individual submeshes, not to the entire actor. So ideally the act3d file would need to contain some nested definitions, like:

I was looking at the code and if you are using the (unfinished) C3DEffect class, get rid of flags setting (the D3DXSHADER_FORCE_VS_SOFTWARE_NOOPT etc.). You don't wanna use those flags, just set them to zero.