user346443
user346443

Reputation: 4852

Adobe Molehill draw line

how can i draw a line with adobe molehill. If i was using opengl i would use GL_LINES, but i seems molehill can only draw triangles.

Cheers

Upvotes: 1

Views: 467

Answers (2)

Gary Paluk
Gary Paluk

Reputation: 1058

You could write a fragment shader that will only draw along one edge of your triangle.

Upvotes: 0

alxx
alxx

Reputation: 9897

Molehill is triangles only, because only triangles are hardware accelerated on most consumer video cards. You can draw thin rectangle with two triangles. Not sure if Molehill 2D already supports lines, but it may be worth to look at.

Upvotes: 2

Related Questions