Duotone
Recolours by brightness, from a dark colour to a light one.
ƒDuotone
In
Dark Colour
Light Colour
Inputs
| Pin | Type | Starts at | Notes |
|---|---|---|---|
Incolour | vec3 | "#808080" | – |
Dark Colourdark | vec3 | "#0b2a3a" | – |
Light Colourlight | vec3 | "#ffc861" | – |
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 = mix(vec3(0.04314, 0.16471, 0.22745), vec3(1.0, 0.78431, 0.38039), lib_luma(vec3(0.50196, 0.50196, 0.50196))); fragColor = vec4(n2_out, 1.0);}In a graph
ƒDuotone
In
Dark Colour
Light Colour
◎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.