Drawing conditional lines


Re: Drawing conditional lines
#9
Hi Alex, Long time no read Smile

@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 Smile
Reply
« Next Oldest | Next Newest »



Messages In This Thread
Drawing conditional lines - by Santeri Piippo - 2013-05-08, 19:24
Re: Drawing conditional lines - by Tim Gould - 2013-05-08, 21:20
Re: Drawing conditional lines - by Roland Melkert - 2013-05-10, 19:13
Re: Drawing conditional lines - by Steffen - 2014-11-28, 1:33

Forum Jump:


Users browsing this thread: 5 Guest(s)