Tag Info

New answers tagged

2

To draw a bezier curve using OpenGL or Direct3D you need to sub-divide the bezier into line segments. If you do this with enough sub-divisions it will look like a smooth curve. Interpolation functions: vec2 Lerp(vec2 a, vec2 b, float i) { return a + (b - a) * i; } vec2 Bezier4(vec2 a, vec2 b, vec2 c, vec2 d, float i) { return Lerp(Lerp(a, b, i), ...



Top 50 recent answers are included