Jump to content
  • Advertisement
Sign in to follow this  

ati and fixed function specular lighting

This topic is 4999 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've mentioned this before, but I figured I'd bring it up again, after version 4.4 cats the specular color component of the fixed function lighting model doesn't seem to work. I'm not trying to add specular light to the end of a cascade but use it like defuse light in order to make a beleveable metalic MAPPED specular effect, it worked perfictly on pre 4.4 cats and still works great on nVidia cards, but in all current ATI driver versions it still fails to do anything. I am hopeing that by now someone has figured a work around that might fix the problem, short of switching to the programable pipeline. this is my texture stage setup.
	d3d_SetTextureStageState( 0, D3DTSS_COLORARG1, D3DTA_SPECULAR);
	d3d_SetTextureStageState( 0, D3DTSS_COLORARG2, D3DTA_TEXTURE);
	d3d_SetTextureStageState( 0, D3DTSS_COLOROP, D3DTOP_MODULATE4X);
//	d3d_SetTexture(0, SPECMAP);

	d3d_SetTexture(1, NULL);
	d3d_SetTextureStageState( 1, D3DTSS_TEXCOORDINDEX, 0);
	d3d_SetTextureStageState( 1, D3DTSS_COLOROP, D3DTOP_DISABLE);
	d3d_SetTextureStageState( 2, D3DTSS_COLOROP, D3DTOP_DISABLE);

	d3d_SetTextureStageState( 3, D3DTSS_COLOROP, D3DTOP_DISABLE);



that is additively blended over a defuse pass.

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!