Class

Shader

Output

RGBA

synopsis

 

The color_jitter shader enables you to alter the input color by applying a random color variation. For each of the following parameters, you can specify the range of hue, saturation, and gain (HSV) for the random colors. The seed is used to get a different random variation.

 


data_input

Applies a random color variation using user data linked to data_input. 

data_gain_min/data_gain_max

Specify the range of a random value to be added to gain. The random value is generated based on "data_input."

data_hue_min/data_hue_max

Specify the range of a random value to be added to hue. The random value is generated based on "data_input."

data_saturation_min/data_saturation_max

Specify the range of a random value to be added to saturation. The random value is generated based on "data_input."

data_seed

Gives a different color variation. This only affects the randomization due to "data_input."

proc_gain_min/proc_gain_max

Specify the range of a random value to be added to gain. The random value is generated based on the name of a procedural object.

proc_hue_min/proc_hue_max

Specify the range of a random value to be added to hue. The random value is generated based on the name of a procedural object.

proc_saturation_min/proc_saturation_max

Specify the range of a random value to be added to saturation. The random value is generated based on the name of a procedural object.

proc_seed

Gives a different color variation. This only affects the randomization due to the name of a procedural object.

obj_gain_min/obj_gain_max

Specify the range of a random value to be added to gain. The random value is generated based on the name of an object.

obj_hue_min/obj_hue_max

Specify the range of a random value to be added to hue. The random value is generated based on the name of an object.

obj_saturation_min/obj_saturation_max

Specify the range of a random value to be added to saturation. The random value is generated based on the name of an object.

obj_seed

Gives a different color variation. This only affects the randomization due to the name of an object.

Saturation Min (-10). Saturation Max (2).

face_gain_min/face_gain_max

Specify the range of a random value to be added to gain. The random value is generated based on a primitive id.

Care should be taken when combining face variations with certain sorts of adaptive subdivision. The variations may cause flickering when animated.

face_hue_min/face_hue_max

Specify the range of a random value to be added to hue. The random value is generated based on a primitive id.

face_saturation_min/face_saturation_max

Specify the range of a random value to be added to saturation. The random value is generated based on a primitive id.

face_seed

Gives a different color variation. This only affects the randomization due to a primitive id.

Saturation Min (-5). Saturation Max (1).

face_mode

The color can be randomized per triangle (Face ID) as well as quadrangle (Uniform ID).


  • No labels