Login  Register

Re: Extending Functionality of Shader Programs

Posted by elect on Feb 11, 2016; 7:27am
URL: https://forum.jogamp.org/Extending-Functionality-of-Shader-Programs-tp4036139p4036167.html

Thanks, the voice is totally fine, really understandable, only the volume is crap (also the blue color, even in fullscreen it's hard to see), I had to max it out and it is still barely enough, but I guess making video is not that easy, so don't mind ;)

Don't worry about the delay, I can image it takes its time


Anyway, one thing I don't get

if we start by:

(5, 5), (10, 5), (10, 10)

we end up with 3 new triangles

(10, 10), (15, 10), (15, 15)     (15, 10), (20, 10), (20, 15)   (15, 15), (20, 15), (20, 20)

and if you draw them, an empty space, big as the original triangle (just inverted on the hypotenuse), will be at the center of the new shape, that is (15,10), (20, 15), (15, 15)

Your program instead doesn not render that empty space..

Moreover, its area, using the old-school way, should be 5 * 5 / 2=12.5 you get 15 + 6 / 2 - 1 = 17 instead.. how do you explain this discrepancy?