添加新的sdf裁切形状示例;添加形状调节参数

This commit is contained in:
ruanwujing
2024-01-31 15:55:31 +08:00
parent 2e0c2601c0
commit cb58fcbff8
14 changed files with 1231 additions and 3 deletions

View File

@@ -1,3 +1,6 @@
float dot2(vec2 p) {
return dot(p, p);
}
float sdCircle( vec2 p, float r )
{
return length(p) - r;