Line rasterization issues

Hi,

I am implementing a new shadow map algorithm and I need to draw all the edges of the geometry. The problem is that when I draw a line, I need to generate a fragment for all the pixels that intersect the line segment (once projected into window coordinates).

The default rasterization mode does not work because it uses the diamond rule. I have implemented a clipping test in my fragment program, but there are too many computations to do.

It there any way to tell opengl to rasterize lines as I have mentioned ?

Thanks
Nacho

I am implementing a new shadow map algorithm and I need to draw all the edges of the geometry.
Off hand, I think it’s safe to say no; there’s no way to change how OpenGL rasterizes lines.

Would you mind describing the algorithm or posting a link to some references?

FYI, this is not a developer forum.

Cheers