robot_2Generated
code_blocksInput

Description

The Vector3 field is a member of the NodeResultType enumeration within the Editor.ShaderGraph namespace. This enumeration is used to specify the type of result that a node in a shader graph can produce. The Vector3 type represents a three-component vector, commonly used in graphics programming to represent points or directions in 3D space.

Usage

Use the NodeResultType.Vector3 enumeration value when you need to specify that a shader graph node should output a three-component vector. This is typically used in scenarios where 3D positional data or directional vectors are required, such as in lighting calculations or vertex transformations.

Example

// Example of using NodeResultType.Vector3 in a shader graph node
public class CustomShaderNode : ShaderNode
{
    public override NodeResultType GetNodeResultType()
    {
        // This node outputs a Vector3 type
        return NodeResultType.Vector3;
    }
}