diff --git a/konabot/docs/user/march.txt b/konabot/docs/user/march.txt index e9a8a82..e42c443 100644 --- a/konabot/docs/user/march.txt +++ b/konabot/docs/user/march.txt @@ -1,16 +1,16 @@ # 指令介绍 简易 Raymarch 小玩具 -用法:march `` +用法:march `[scene]` 例:march torus(1.0, 0.2).color(1.0, 0.2, 0.2) torus(1.0, 0.2).rot(90, 0, 0).color(0.2, 0.2, 1.0) camera(4.0).pos(4, 0, 0).lookat(0) # 主要语法 -`` ::= `` "." `` |`` +`[scene]` ::= `[scene]` "." `[op]` |`[obj]` -`` ::= `` | `` "(" ")" +`[obj]` ::= `[obj_ty]` | `[obj_ty]` "(" [args] ")" -`` ::= `` | `` "(" `` ")" +`[op]` ::= `[op_ty]` | `[op_ty]` "(" `[args]` ")" -`` ::= `` "," `` | `` +`[args]` ::= `[args]` "," `[arg]` | `[arg]` 其中 `obj_ty`、`op_ty` 分别为物体类型(如 `cube`、`sphere`、`torus` 等)与变换类型(如 `pos`、`rot`)。 @@ -37,4 +37,4 @@ `rounded`:圆角 # 特殊说明 -`` 不包含 scale。非正交的变换会破坏 SDF 的性质。 \ No newline at end of file +`[op_ty]` 不包含 scale。非正交的变换会破坏 SDF 的性质。 \ No newline at end of file