浏览代码

Sidenote for the clipping node manual (#50)

Alexey Gulev 6 年之前
父节点
当前提交
87a677125c
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      docs/en/manuals/gui-clipping.md

+ 4 - 0
docs/en/manuals/gui-clipping.md

@@ -62,6 +62,10 @@ Layers can be used to control rendering order (and batching) of nodes. When usin
 - Clipping order take precedence over layer order---regardless of what layer a node belongs to, it will be clipped according to the node hierarchy.
 - Clipping order take precedence over layer order---regardless of what layer a node belongs to, it will be clipped according to the node hierarchy.
 - Layers only affect the draw order of graphics---and furthermore, the layer set on a clipping node only affects the draw order _in that clipper's hierarchy_.
 - Layers only affect the draw order of graphics---and furthermore, the layer set on a clipping node only affects the draw order _in that clipper's hierarchy_.
 
 
+::: sidenote
+A clipping node and its hierarchy will be drawn first if it has a layer assigned and in the regular order if no layer is assigned.
+:::
+
 ![Layers and clipping](images/gui-clipping/layers.png){srcset="images/gui-clipping/[email protected] 2x"}
 ![Layers and clipping](images/gui-clipping/layers.png){srcset="images/gui-clipping/[email protected] 2x"}
 
 
 Here the clipper node "ocular" is set to "layer3" and the "bean" node is set to "layer1". The ocular clipper's texture is therefore rendered on top of the clipped bean.
 Here the clipper node "ocular" is set to "layer3" and the "bean" node is set to "layer1". The ocular clipper's texture is therefore rendered on top of the clipped bean.