Surface Color VEX node

Generates a basic color with a choice of tinting with the point color and/or a color map.

All Inputs Output

See also: Texture

This vop allows the user to choose between several different color combinations. There are options to use the point color and/or a color map to be multiplied with the selected 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.

colorMapWrap

Determines what the texture looks like when the texture coordinates are larger or less than 0 to 1. The options are:

  • Repeat means the texture will repeat (tile).

  • Streak means the texture color at the edges is clamped and streaks outside the map.

  • Decal sets the color outside the texture map to the Border Color.

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 texutre map (if one is used). Defaults to on. If usePointAlpha and useColorMap are all off, the output alpha is white.

Output

product

The resultant color.

Usages in other examples

Example name Example for

Material shader

Load | Launch

Material shader

Load | Launch

Fur surface node

Load | Launch