Scalar Exponent

 
 
 

Category: Processing > Math

Shader Family: Texture

Output: Scalar

Performs an exponential operation of your choice on a scalar value, texture or, shader using either an RGBA factor or another shader.

Name

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

Input

Defines the scalar value in the operation.

Factor

Defines the factor to be used in the exponential operation.

Operation

Defines the type of exponential operation the shader will perform.

Exponent: Uses a simple exponential power operation where input 1 is the base to the power of the factor input.

Logarithm: The inverse of power.

Bias: Uses the Factor input to specify the amount of bias. The bias should be seen as a Contrast function. 0 for darkest; 1 for lightest.

Gain: Uses the Factor input to specify the level of the gain to be applied, ranging from 0 to 1.

Render Tree Usage

Used to connect one or two scalar-output shaders (texture generators, other math shaders) to the Input parameters. Once a function is selected, the output can be used on any shader that accepts a scalar input.

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