nsi_core/node.rs
1//! Standard ɴsɪ node types.
2
3/// Wildcard node that references all existing nodes at once (`.all`).
4pub const ALL: &str = ".all";
5/// The scene’s root (`.root`).
6/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-root).
7pub const ROOT: &str = ".root";
8/// Global settings node (`.global`).
9/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-global-node).
10pub const GLOBAL: &str = ".global";
11/// Expresses relationships of groups of nodes.
12/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-set).
13pub const SET: &str = "set";
14/// [ᴏsʟ](http://opensource.imageworks.com/osl.html) shader or layer in a shader group.
15/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-shader).
16pub const SHADER: &str = "shader";
17/// Container for generic attributes (e.g. visibility).
18/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-attributes).
19pub const ATTRIBUTES: &str = "attributes";
20/// Transformation to place objects in the scene.
21/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-transform).
22pub const TRANSFORM: &str = "transform";
23/// Specifies instances of other nodes.
24/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-instances).
25pub const INSTANCES: &str = "instances";
26/// An infinite plane.
27/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-plane).
28pub const PLANE: &str = "plane";
29/// Polygonal mesh or subdivision surface.
30/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-mesh).
31pub const MESH: &str = "mesh";
32/// Assign attributes to part of a mesh, curves or particles.
33/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-faceset).
34pub const FACESET: &str = "faceset";
35/// Linear, b-spline and Catmull-Rom curves.
36/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-curves).
37pub const CURVES: &str = "curves";
38/// Collection of particles.
39/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-particles).
40pub const PARTICLES: &str = "particles";
41/// Geometry to be loaded or generated in delayed fashion.
42/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-procedural).
43pub const PROCEDURAL: &str = "procedural";
44/// A volume loaded from an [OpenVDB](https://www.openvdb.org) file.
45/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-volume).
46///
47/// Also see the `volume` example.
48pub const VOLUME: &str = "volume";
49/// Geometry type to define environment lighting.
50/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-environment).
51pub const ENVIRONMENT: &str = "environment";
52/// An orthographic camera.
53/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-orthographiccamera-node).
54pub const ORTHOGRAPHIC_CAMERA: &str = "orthographiccamera";
55/// A perspective camera.
56/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-perspectivecamera-node).
57pub const PERSPECTIVE_CAMERA: &str = "perspectivecamera";
58/// A fisheye camera.
59/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-fisheyecamera-node).
60pub const FISHEYE_CAMERA: &str = "fisheyecamera";
61/// A cylindrical camera.
62/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-cylindricalcamera-node).
63pub const CYLINDRICAL_CAMERA: &str = "cylindricalcamera";
64/// A spherical camera.
65/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#the-sphericalcamera-node).
66pub const SPHERICAL_CAMERA: &str = "sphericalcamera";
67/// A target where to output rendered pixels.
68/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-outputdriver).
69pub const OUTPUT_DRIVER: &str = "outputdriver";
70/// Describes one render layer to be connected to an `outputdriver` node.
71/// [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-outputlayer).
72pub const OUTPUT_LAYER: &str = "outputlayer";
73/// Describes how the view from a camera node will be rasterized into an
74/// `outputlayer` node. [Documentation](https://nsi.readthedocs.io/en/latest/nodes.html#node-screen).
75pub const SCREEN: &str = "screen";