As of late I've been doing bump mapping and several other texture tricks and have realized one thing. Since D3D is a state machine, the state from one type of render is passed on to the next object.
Without using state blocks, is there a way to just reset the texture stage states to their default values w/o having to specifically pass a parameter in a call to SetTextureStageState?
These might be the default values but say they weren't. Is there a way to reset sampler 0 to it's default values?Code:Device->SetTextureStageState(0,D3DTSS_COLORARG,D3DTA_TEXTURE); Device->SetTextureStageState(0,D3DTSS_COLOROP,D3DTOP_MODULATE);