hi
not sure what it is called and if i did i probably did not need this post
want to filter or multiply stuff within a material like a color or texture so that no color value is black and any color value is white
thanks
hi
not sure what it is called and if i did i probably did not need this post
want to filter or multiply stuff within a material like a color or texture so that no color value is black and any color value is white
thanks
No color? As in transparent? Just use a lerp node on the alpha of your color. First pin is black. Second is white.
bit new to materials
so far managed to avoid them
but now i really need a dynamic material for something
should not be transparent
can say i must take greyscale to black and white in some sense
in logic it would be if color or r,g,b is below x, it is black and if above x it is white
thanks
Depends how you want to calculate the brightness. For now, we’ll assume you just average them. You can change the Threshold as you see fit.
this is great thanks
spent a lot of time looking and could not source this
i think i need the material to be entirely opaque in the end
not sure whether that is the only factor determining brightness but it seems to be a dominant one
thanks again
I meant intensity of the color. How do you want to calculate the single value from RGB?
Normally, brightness is calculated with this:
0.299 * Red + 0.587 * Green + 0.114 * Blue
Above, I used:
0.333 * Red + 0.333 * Green + 0.333 * Blue
Then there’s alpha. You mentioned it was opaque. If it’s not opaque, you have to decide what to do with alpha.
with you, thanks
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.