vectorToFloat
Converts a vector value field to a float field using one part of the vector.
Parameters
-
Enable
: -
Use Part
: Which part of the vector to use for the float field.-
X
: -
Y
: -
Z
: -
W
: -
Length(XY)
: -
Length(XYZ)
: -
Length(XYZW)
:
-
Inputs
-
definition_in
: (required)- Coordinate Types:
float
vec2
vec3
- Context Types:
Context
MaterialContext
CameraContext
LightContext
RayContext
ParticleContext
- Return Types:
vec4
- Coordinate Types: