RgbMath Op

RgbMath

apply simple mathematical functions on pixels color values


This OP enables you to use precise values to modify the pixels in your texture.
For example adjusting texture values that are modifying your geometry or array values, or even your post processing compositions.


Edit Documentation

Full Name
  • Ops.Gl.ImageCompose.Math.RgbMath
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorTest Patches


 

Example Patch Mesh Instancer from Texture

Use a texture to position geometry instances in your scene.

Using HDR textures will alow for precise control.

Open In Editor

INPUT PORTS


Render (Trigger)
Operation index (Number:integer )

c-x: subtraction x from color value, x-c: subtract color value from x value, c*x: multiply color value by x, x/c: divide x value by color value, c/x: divide color value by x value, c%x: modulo operation on color value by modulus x of which the remainder is the result for your selected color channel

R Active (Number:boolean )
G Active (Number:boolean )
B Active (Number:boolean )
A Active (Number:boolean )
Texture (Object:texture)
r (Number)
g (Number)
b (Number)
a (Number)
Multiply Texture (Number)
Mask (Object:texture)

OUTPUT PORTS


trigger (Trigger)

Patches using RgbMath

  • Examples
  • Public
  • My Patches

Changelog


cloned op from Ops.Gl.TextureEffects.RgbMultiplyuser avatarpandur - 2021-05-14 14:10
Ops.User.pandur.RGBMath renamed to Ops.Gl.TextureEffects.RGBMathuser avatarpandur - 2021-05-14 15:13
Ops.Gl.TextureEffects.RGBMath renamed to Ops.Gl.TextureEffects.Math.RgbMathuser avatarpandur - 2022-12-14 08:53
renameOps.Gl.TextureEffects.Math.RgbMath renamed to Ops.Gl.ImageCompose.Math.RgbMathuser avatarstephan - 2023-12-06 10:28