to get more familiar with glsl and touch I decided to port some non photorealistic shading code. Its looking kind of boring and aliased right now. Here is a sample. suggestions for smoother lines, faster performance, features would be great.
NPRexample.6.toe (9.58 KB)
this file is running with 2fps here. Is it as slow on your machine?
(perf mon reports 465 ms for changing graphics context)
changing graphics context is .05 ms for me with a total frame time of 50 ms. Try this one with the guassian filtering turned off which didn’t seem to work anyway.
NPRexample.7.toe (9.6 KB)
a tiny bit faster, total frame time 300ms and above, 280ms for changing graphics context
New drivers complain about the smoothstep() usage in the GLSL TOP. Here’s a new version with that fixed (just had to change the integers to floats by putting .0 at the end).
NPRexample.8.toe (9.06 KB)