ReferenceMaterial nodesUtility
Split Vector 4
A vector's R, G, B and A on their own.
ƒSplit Vector 4
In0000R
G
B
A
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Inv | vec4 | 0 | – |
Outputs
| Pin | Type |
|---|---|
Rx | float |
Gy | float |
Bz | float |
Aw | float |
The code it becomes
What Studio writes for the graph below: a few lines of the material's shader, worked out for every pixel.
void mainImage(out vec4 fragColor, in vec2 fragCoord){ float n2_x = (vec4(0.0, 0.0, 0.0, 0.0)).x; float n2_y = (vec4(0.0, 0.0, 0.0, 0.0)).y; float n2_z = (vec4(0.0, 0.0, 0.0, 0.0)).z; float n2_w = (vec4(0.0, 0.0, 0.0, 0.0)).w; fragColor = vec4(vec3(n2_x), 1.0);}In a graph
ƒSplit Vector 4
In0000R
G
B
A
◎Material OutputEnds here
Colour
Alpha1
Texture coordinates into the node, and the node into the material, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.