Surface Color
VEX node
Generates a basic color with a choice of tinting with the point color and/or a color map.
See also: Texture
This vop allows the user to choose between several different color combinations. There are options to use the point color or point alpha attributes as well as a color map or base color. With this vop the UI is already correctly setup.
Inputs
|
useBaseColor |
If this toggle is off, the baseColor is ignored. Defaults to on. If useBaseColor, usePointColor and useColorMap are all off, the output color is white. |
|
baseColor |
This is the main output color for the material. Defaults to white. |
|
usePointColor |
If this toggle is on and a point color, (Cd), is defined, then that color is multiplied with the baseColor. Defaults to on. If useBaseColor, usePointColor and useColorMap are all off, the output color is white. |
|
useColorMap |
If this toggle is on, the specified texture map is multiplied by the baseColor. Defaults to off. If useBaseColor, _usePointColor and _useColorMap are all off, the output color is white. |
|
baseColorMap |
This the name of the image file to be used as the color texture. This parameter recognizes a map that has an alpha channel and will add the alpha values to the alpha output of the vop. If no alpha channel exists in the map, then a default alpha of 1 is used. |
|
colorMapWrap |
Determines what the texture looks like when the texture coordinates are larger or less than 0 to 1. The options are:
See texture for more information. |
|
colorMapFilter |
Type of anti-aliasing filter used. See texture for more information. |
|
colorMapWidth |
Filter Width is the number of pixels, in both u and v directions, to use in filtering. See texture for more information. |
|
colorMapBorder |
The color used outside the map if Decal Wrap is selected. See texture for more information. |
|
scoord |
U coordinate (or global s) |
|
tcoord |
V coordinate (or global t) |
|
usePointAlpha |
If this toggle is on and a point alpha, (Alpha), is defined, then that alpha is multiplied with the alpha of the texture map (if one is used). Defaults to on. If usePointAlpha and useColorMap are all off, the output alpha is white. |
|
colorMapIntensity |
This is a float parameter which can be used to scale the effect that the color map will have on the color output from this vop. A value of 0 will provide a similar result to not using a map at all. |
Output
|
color |
The resultant color from the Base Color, Color Map, and Point Color processing. |
|
alpha |
The resultant alpha from the Color Map and Point Alpha processing. |
Usages in other examples
| Example name | Example for | |
|---|---|---|
| Fire Pit example |
Material shader |
|
| Down Hill Lava Flow |
Material shader |
|
| FurTextureMap |
Fur surface node |
|
| InstanceRandomGeo |
Instance particle node |
|
| RampReference |