Original Post
Hey Ok, so I got alpha going for my point sprites, but now the size gets crap. It's all ok until I get a bit close, when the camera is 3-4 units away from the sprite. When I get closer the sprite is scaled down. This is how i do it: Any suggestions on what could be wrong are greatly appreciated. Thanks in advance
a_Device->SetRenderState(D3DRS_POINTSPRITEENABLE, TRUE);
a_Device->SetRenderState(D3DRS_POINTSCALEENABLE, TRUE);
a_Device->SetRenderState(D3DRS_POINTSIZE, FtoDW(m_Size));
a_Device->SetRenderState(D3DRS_POINTSIZE_MIN, FtoDW(0.0f));
a_Device->SetRenderState(D3DRS_POINTSCALE_A, FtoDW(0.0f)); // Default 1.0
a_Device->SetRenderState(D3DRS_POINTSCALE_B, FtoDW(0.0f)); // Default 0.0
a_Device->SetRenderState(D3DRS_POINTSCALE_C, FtoDW(1.0f)); // Default 0.0
// Use the particle size
// Example:
vertices->m_Size = particle->m_Size;
// Render...