# ati and fixed function specular lighting

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

## 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 on other sites
um, yeah, there's like a thousand people waiting on this.