You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/2.0/Khronos/KHR_node_visibility/README.md
+10-10
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# KHR_node_visibility
1
+
# KHR\_node\_visibility
2
2
3
3
## Contributors
4
4
@@ -21,13 +21,13 @@ This extension allows glTF animations and interactivity to control visibility of
21
21
22
22
## Extending Nodes
23
23
24
-
The `KHR_node_visibility` extension object is added to the objects within the `nodes` array. The extension object contains a single boolean `hidden` property. This value is mutable through JSON pointers as defined in the glTF 2.0 Asset Object Model and controls visibility of the node that contains it and all its children nodes recursively. A value of `true` causes all nodes below in the hierarchy to be omitted from display, even any nodes below that have a value of `false`.
24
+
The `KHR_node_visibility` extension object is added to the objects within the `nodes` array. The extension object contains a single boolean `visible` property. This value is mutable through JSON pointers as defined in the glTF 2.0 Asset Object Model and controls visibility of the node that contains it and all its children nodes recursively. A value of `false` causes all nodes below in the hierarchy to be omitted from display, even any nodes below that have a value of `true`.
|**visible**|`boolean`| Specifies whether the node is visible. | No, default: `true`|
29
29
30
-
In other words, a node is visible if and only if its own `hidden` property is `false` and all its parents are visible. This allows a single change of a `hidden` property at a high level of the hierarchy to hide or show complex (multi-node) objects.
30
+
In other words, a node is visible if and only if its own `visible` property is `true` and all its parents are visible. This allows a single change of a `visible` property at a high level of the hierarchy to hide or show complex (multi-node) objects.
31
31
32
32
In the following example, both nodes (and therefore their meshes) are initially hidden.
33
33
@@ -39,7 +39,7 @@ In the following example, both nodes (and therefore their meshes) are initially
39
39
"mesh": 0,
40
40
"extensions": {
41
41
"KHR_node_visibility": {
42
-
"hidden": true
42
+
"visible": false
43
43
}
44
44
},
45
45
},
@@ -54,9 +54,9 @@ In the following example, both nodes (and therefore their meshes) are initially
54
54
55
55
The following pointer template represents the mutable property defined by this extension.
0 commit comments