Welcome! Log In Create A New Profile

Advanced
Re: Drawing conditional lines
avatarMay 10, 2013 12:13PM
Hi Alex, Long time no read :)

@Santeri

I use Alex' excellent approach in my LDCad, you can see the shader code in the resources folder of it's installation.

The geometry shader approach is the most efficient on paper but on older cards/drivers it's actually slower then the vs one.

The vs approach works on almost any gl platform, but it takes a whopping 5 attributes (incl pos) per vertex, and as a result wastes quite some memory and completely messes up your index re usage, But the performance you get is all all worth it :)
SubjectAuthorViewsPosted
Drawing conditional lines Santeri Piippo358May 08, 2013 12:24PM
Re: Drawing conditional lines Travis Cobbs171May 08, 2013 01:46PM
Re: Drawing conditional lines Tim Gould144May 08, 2013 02:20PM
Re: Drawing conditional lines Travis Cobbs172May 08, 2013 03:32PM
Re: Drawing conditional lines Santeri Piippo173May 08, 2013 03:41PM
Re: Drawing conditional lines Travis Cobbs167May 08, 2013 04:10PM
Re: Drawing conditional lines Santeri Piippo167May 08, 2013 03:03PM
Re: Drawing conditional lines Alex Taylor184May 10, 2013 09:00AM
Re: Drawing conditional lines Roland Melkert173May 10, 2013 12:13PM
Re: Drawing conditional lines Santeri Piippo174May 10, 2013 12:27PM
Re: Drawing conditional lines Roland Melkert234May 10, 2013 01:50PM



Sorry, only registered users may post in this forum.

Click here to login