Sign in to follow this  

ati and fixed function specular lighting

This topic is 4838 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

This topic is 4838 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this