Color Basic

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Color

Used to perform basic mathematical functions between two input colors, shaders, or textures.

Name

The shader's name. Enter any name you like, or leave the default.

Input 1

Defines the first color, shader, or texture.

Input 2

Defines the second color, shader, or texture input.

Operation

Performs a basic mathematical function using both input colors.

Add: Simply adds the two colors together.

Subtract: Subtracts input 2 from input 1.

Multiply: Simply multiplies the two colors together. Values will not be clipped at 1.

Divide: Divides input 1 by input 2.

Minimum: The output will be the lowest R, G, B, and A values of both input colors. For example, if input 1 has a 0.75 G value and input 2 has a 0.45 value, the shader will use input 2's G value.

Maximum: The output will be the highest R, G, B, and A values of both input colors. For example, if input 1 has a 0.85 R value and input 2 has a 0.55 value, the shader will use input 1's R value.

Apply to Alpha

Uses an input alpha as RGB values.

Render Tree Usage

Used to connect one or two shaders (textures, materials, other math shaders, etc.) to the Input parameters. Once an operation is selected, the output can be used on any shader that accepts a color input.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License