Colour Balance
Tints the dark, middle and bright parts separately.
ƒColour Balance
In
Shadows000.05
Midtones000
Highlights0.050.020
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Incolour | vec3 | "#808080" | – |
Shadowsshadows | vec3 | (0, 0, 0.05) | – |
Midtonesmidtones | vec3 | (0, 0, 0) | – |
Highlightshighlights | vec3 | (0.05, 0.02, 0) | – |
Outputs
| Pin | Type |
|---|---|
out | vec3 |
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){ vec3 n2_out = (vec3(0.50196, 0.50196, 0.50196) + vec3(0.0, 0.0, 0.05) * (1.0 - smoothstep(0.0, 0.5, lib_luma(vec3(0.50196, 0.50196, 0.50196)))) + vec3(0.0, 0.0, 0.0) * (1.0 - abs(lib_luma(vec3(0.50196, 0.50196, 0.50196)) * 2.0 - 1.0)) + vec3(0.05, 0.02, 0.0) * smoothstep(0.5, 1.0, lib_luma(vec3(0.50196, 0.50196, 0.50196)))); fragColor = vec4(n2_out, 1.0);}In a graph
ƒColour Balance
In
Shadows000.05
Midtones000
Highlights0.050.020
◎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.