Description
The Float
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 shader graph node can produce. The Float
type indicates that the node's output is a single floating-point value.
Usage
Use the NodeResultType.Float
enumeration value when you need to specify that a shader graph node should output a single floating-point number. This is commonly used in shader programming when dealing with scalar values such as intensity, opacity, or any other single-value parameter.
Example
// Example of using NodeResultType.Float in a shader graph node
public class CustomShaderNode : ShaderNode
{
public override NodeResultType GetNodeResultType()
{
return NodeResultType.Float;
}
// Additional implementation details for the shader node
}