🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How to include a FX shader to my game ?

Started by
0 comments, last by eduard_ionut 3 years, 2 months 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