compare
The Compare node offers you the ability to use a logical comparison operator as a way to combine textures. The node takes four inputs. The first two inputs are the textures that will be compared. The second two inputs are the result of the comparison.
比较
比较节点使您能够使用逻辑比较运算符作为组合纹理的方式。 该节点有四个输入。 前两个输入是将要比较的纹理。 后两个输入是比较的结果。
how to use
The use of this node is simple but it takes a while to understand at the beginning. The pixel values of the 2 texture to be compared are taken as reference and the result depends on your chosen logic operator. Now let's look at the simplest example below:
如何使用
这个节点的使用很简单,但是一开始需要花一些时间来理解。 将要比较的2个纹理的像素值作为参考,其结果取决于您选择的逻辑运算符。 现在让我们看下面的最简单的例子:
"IF A>=B" or "IF A<B"
As shown in the following example, if the input "A" is equal to or greater than the input "B", the orange color is active. The important thing here is the numeric pixel value of the data in the Input channel. In the example, each pixel value of the input "A" is 194. So if we assign an RGB spectrum node to "If A> = B", the result is orange. If you go through this logic and change the locations of 2 input nodes, the result will be blue. So you will have a better understanding of the logic operator's function. With this simple logic you can combine many textures or create different texture effects.
“如果A> = B”或“如果A <B”
如下例所示,如果输入“ A”等于或大于输入“ B”,则橙色处于活动状态。 这里重要的是输入通道中数据的数字像素值。 在此示例中,输入“ A”的每个像素值为194。因此,如果将RGB光谱节点分配给“ If A> = B”,则结果为橙色。 如果通过此逻辑并更改2个输入节点的位置,结果将为蓝色。 因此,您将对逻辑运算符的功能有更好的了解。 使用这种简单的逻辑,您可以组合许多纹理或创建不同的纹理效果。
赶快留个言打破零评论!~