Jack
  • Member for 4 years, 8 months
  • Last seen more than a month ago
How can I offset/shrink a triangular polygon in GLSL?
Accepted answer
9 votes

Given triangle ▲ABC, we bisect angle ∠BAC with line AD, derived with Angle Bisector Theorem: BA / BD = CA / CD Point E represents our objective refined position on the desired resulting inset ...

View answer
Multiple viewports with modern OpenGL?
2 votes

These are all good answers, and yet there is another way: (Isn't there always?) Due to the growing popularity of virtual reality, the folks at OculusVR have developed a trio of "Multiview" ...

View answer
How to apply wire texture for realistic rendering of embroidery?
2 votes

Picking up from step 2, where you generated line segments to represent individual stitches, I would first suggest that you apply rounded ends to each segment, rather than square ends. I would then ...

View answer
Pixel dispersion (dissolving) algorithms
2 votes

You could do this entirely within an OpenGL/WebGL fragment shader: Attach the image you wish to emerge as a texture/sampler2D. Attach uniforms for the current time, as well as the time you want the ...

View answer