Shader特效——绘制二次 Bezier 曲线【GLSL】

论文原文: Random-Access Rendering of General Vector Graphics

效果如图:

代码及原理详解:

v_{i} 示意图:(a) 退化为直线的情况 (b) 一般的情况
// https://www.shadertoy.com/view/lts3Df

// 因为 p={0,0} 简化为二阶行列式
float det(vec2 a, vec2 b)
{

猜你喜欢

转载自blog.csdn.net/panda1234lee/article/details/103534019