Hi,
I am using node material editor to create a custom mesh.
I have vertex color(input variable) and body color(passed as uniform) for a mesh.
I want to use body color if vertex color is (0,0,0,1.0).
Which block to use if we need to use conditional statements. ?
Material::useVertexColor () is used at the mesh level. Is there similar to that at vertex level.
I am not sure if this helps you but you can use Lerp as conditional block.
You create float and set it as boolean. False (0) will pass left value, True (1) will pass right value. You can control this Float value inside your code later to switch between inputs.
Hi @nogalo ,
I tried that its working fine.
Is it possible to have a condition like vertex Color is 0,0,0 or if its null, then I can assign body color.