4.2 绘制 2D 形状的另一方法 | Shadertoy中文教程 #14
Replies: 1 comment
-
|
如果 signed distance 值大于零,则表示该点位于圆内。如果该值小于或等于零,则表示该点位于圆的外部或边缘。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
4.2 绘制 2D 形状的另一方法 | Shadertoy中文教程
在前面的教程中,我们学习了如何使用 2D SDF 创建 2D 形状,例如圆形和方形。但是,sdfCircle 和 sdfSquare 函数以 vec3 向量的形式返回颜色。
https://shadertoy.peakcoder.com/mulitple2d-shapes-mixing/draw-shapes/
Beta Was this translation helpful? Give feedback.
All reactions