Sign in to follow this  

fog and in general

This topic is 4402 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 need to set renderstate to 0 to speed up ? for example
void Fog::draw(IDirect3DDevice9 * d)
	d->SetRenderState(D3DRS_FOGENABLE, true);
	d->SetRenderState(D3DRS_FOGTABLEMODE, m_attenu);
	d->SetRenderState(D3DRS_FOGCOLOR, m_color);

	d->SetRenderState(D3DRS_FOGSTART, m_start);
	d->SetRenderState(D3DRS_FOGEND, m_end);

void Fog::unDraw(IDirect3DDevice9 * d)
	d->SetRenderState(D3DRS_FOGENABLE, false);
	d->SetRenderState(D3DRS_FOGTABLEMODE, 0);
	d->SetRenderState(D3DRS_FOGCOLOR, 0);

	d->SetRenderState(D3DRS_FOGSTART, 0);
	d->SetRenderState(D3DRS_FOGEND, 0);

Do I need to set item to 0? if I do not set 0 ,speed is up or down?

Share this post

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