Hi,
I have geometry (or fallback vertex only) shader, that generates lines with custom width and pass float uniform into shader.
For lines that are more than 1px thick, it works great. But if I want to draw nonantialliased line with 1px width, it looks ugly, especialy when line is not perpendicular to screen.
Any options ?
Problem is that I have only one definition of some geometry and wants to draw it with different line widths many times
Thank you

09-21-2012, 01:48 AM

thokra

Quote:

it looks ugly

Define ugly. Screen shot please.

09-21-2012, 02:07 AM

phdr_hroch

1 Attachment(s)

Attachment 876
in 45 degrees rotation the line (created by two triangles) is 2px wide instead of 1px