In this chapter we'll cover some utility nodes for conversion of one type data to another - TexColor2Scalar, TexColorAverage, TexColorExponential, TexColorToFloat, TexFloatToColor, TexHSVToRGB, TexIntToFloat, TexInvert, TexRgbaCombine, TexRgbaSplit, TexVectorToColor.

TexColor2Scalar


This plugin allows you to convert the total intensity of a color to scalar.

Parameters

  • clr_txt - Color texture, which intensity will be used
  • mult - intensity multiplier
  • use_alpha - add alpha in the average calculation


TexColorAverage


This plugin allows to compute the average intensity of a texture.

Parameters

  • input - Input texture used to compute an intensity level
  • factor - The intensity of the output


TexColorExponential


This plugin allows to apply a matematical operation against a texture, taking another texture as a second parameter to the operation.

Parameters

  • input - The value used in the operation.
  • factor - The factor to be used in the operation.
  • operation - The operation: 0=Exponential, 1=Logarithm, 2=Bias, 3=Gain
  • use_alpha - Apply operation to alpha channel


TexColorToFloat


This plugin allows you to convert an RGB color to Float Color.

Parameters

  • input - The color value


TexFloatToColor


This plugin allows you to convert a Float Color to RGB color.

Parameters

  • input - The float value

 

TexHSVToRGB


This plugin converts an HSV texture to RGB.

Parameters

  • inHsv - The input texture
  • color - The output texture


TexIntToFloat


This plugin allows you to convert integer texture to texture of floats.

Parameters

  • input - The integer value as a texture of ints

TexInvert


This plugin gives the complementary color of a texture.

Parameters

  • texture - The texture to be inverted
  • invert_alpha - boolean flag wether to also include alpha channel in the inversion
  • color - The inverted texture color


TexRgbaCombine


This plugin allows you to combine separate R, G, B and A channels into a single color.

Parameters

All parameters are textures of floats.

  • red - Red channel input
  • green - Green channel input
  • blue - Blue channel input
  • alpha - Alpha channel input

 

TexRgbaSplit


This plugin allows to split the RGB and A components of a texture.

Parameters

  • input - Color RGBA input texture
  • rgb - Output texture - the RGB values with alpha set to 1.0
  • combined - Output texture - the combined RGB and alpha
  • alpha - Output texture of floats - the input's alpha only


TexVectorToColor


This is a utility plugin to convert 3D vector type to color.

Parameters

  • input - The input texture of vectors
  • color - The output color texture