How to include a FX shader to my game ?

Started by
0 comments, last by eduard_ionut 3 years, 1 month ago

Hi, I have an old game source from 2004, the game runs DirectX9, and I want to improve the graphics.

I downloaded NVIDIA FX Composer 2.5, and I created a “Phong_bump_relect.fx”.

I want to add the effect to my terrain, is there any way ?

I tried like this, on the terrain render function:

	if (D3DXCreateEffectFromFileA(ms_lpd3dDevice, "Phong_bump_relect.fx", 0, 0, 0, 0, &m_pShader, 0) != S_OK)
		assert(!"Failed to create shader !");

But nothing happened.

This topic is closed to new replies.

Advertisement