Blender  V3.3
Functions
color_util.h File Reference

Go to the source code of this file.

Functions

CCL_NAMESPACE_BEGIN ccl_device float3 svm_mix_blend (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_add (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_mul (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_screen (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_overlay (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_sub (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_div (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_diff (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_dark (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_light (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_dodge (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_burn (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_hue (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_sat (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_val (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_color (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_soft (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_linear (float t, float3 col1, float3 col2)
 
ccl_device float3 svm_mix_clamp (float3 col)
 
ccl_device_noinline_cpu float3 svm_mix (NodeMix type, float fac, float3 c1, float3 c2)
 
ccl_device_inline float3 svm_brightness_contrast (float3 color, float brightness, float contrast)
 
ccl_device float3 svm_combine_color (NodeCombSepColorType type, float3 color)
 
ccl_device float3 svm_separate_color (NodeCombSepColorType type, float3 color)
 

Function Documentation

◆ svm_brightness_contrast()

ccl_device_inline float3 svm_brightness_contrast ( float3  color,
float  brightness,
float  contrast 
)

Definition at line 298 of file color_util.h.

References Freestyle::a, usdtokens::b(), color, and max.

Referenced by BrightContrastNode::constant_fold(), and svm_node_brightness().

◆ svm_combine_color()

ccl_device float3 svm_combine_color ( NodeCombSepColorType  type,
float3  color 
)

◆ svm_mix()

ccl_device_noinline_cpu float3 svm_mix ( NodeMix  type,
float  fac,
float3  c1,
float3  c2 
)

◆ svm_mix_add()

ccl_device float3 svm_mix_add ( float  t,
float3  col1,
float3  col2 
)

Definition at line 13 of file color_util.h.

References interp(), and t.

Referenced by svm_mix().

◆ svm_mix_blend()

CCL_NAMESPACE_BEGIN ccl_device float3 svm_mix_blend ( float  t,
float3  col1,
float3  col2 
)

Definition at line 8 of file color_util.h.

References interp(), and t.

Referenced by svm_mix().

◆ svm_mix_burn()

ccl_device float3 svm_mix_burn ( float  t,
float3  col1,
float3  col2 
)

Definition at line 127 of file color_util.h.

References t, float3::x, float3::y, and float3::z.

Referenced by svm_mix().

◆ svm_mix_clamp()

ccl_device float3 svm_mix_clamp ( float3  col)

Definition at line 245 of file color_util.h.

References col, and saturate().

Referenced by svm_mix().

◆ svm_mix_color()

ccl_device float3 svm_mix_color ( float  t,
float3  col1,
float3  col2 
)

Definition at line 213 of file color_util.h.

References hsv_to_rgb(), interp(), rgb_to_hsv(), t, float3::x, and float3::y.

Referenced by svm_mix().

◆ svm_mix_dark()

ccl_device float3 svm_mix_dark ( float  t,
float3  col1,
float3  col2 
)

Definition at line 82 of file color_util.h.

References interp(), min, and t.

Referenced by svm_mix().

◆ svm_mix_diff()

ccl_device float3 svm_mix_diff ( float  t,
float3  col1,
float3  col2 
)

Definition at line 77 of file color_util.h.

References fabs(), interp(), and t.

Referenced by svm_mix().

◆ svm_mix_div()

ccl_device float3 svm_mix_div ( float  t,
float3  col1,
float3  col2 
)

Definition at line 61 of file color_util.h.

References t, float3::x, float3::y, and float3::z.

Referenced by svm_mix().

◆ svm_mix_dodge()

ccl_device float3 svm_mix_dodge ( float  t,
float3  col1,
float3  col2 
)

Definition at line 92 of file color_util.h.

References t, float3::x, float3::y, and float3::z.

Referenced by svm_mix().

◆ svm_mix_hue()

ccl_device float3 svm_mix_hue ( float  t,
float3  col1,
float3  col2 
)

Definition at line 166 of file color_util.h.

References hsv_to_rgb(), interp(), rgb_to_hsv(), t, float3::x, and float3::y.

Referenced by svm_mix().

◆ svm_mix_light()

ccl_device float3 svm_mix_light ( float  t,
float3  col1,
float3  col2 
)

Definition at line 87 of file color_util.h.

References interp(), max, and t.

Referenced by svm_mix().

◆ svm_mix_linear()

ccl_device float3 svm_mix_linear ( float  t,
float3  col1,
float3  col2 
)

Definition at line 240 of file color_util.h.

References make_float3, and t.

Referenced by svm_mix().

◆ svm_mix_mul()

ccl_device float3 svm_mix_mul ( float  t,
float3  col1,
float3  col2 
)

Definition at line 18 of file color_util.h.

References interp(), and t.

Referenced by svm_mix().

◆ svm_mix_overlay()

ccl_device float3 svm_mix_overlay ( float  t,
float3  col1,
float3  col2 
)

Definition at line 32 of file color_util.h.

References t, float3::x, float3::y, and float3::z.

Referenced by svm_mix().

◆ svm_mix_sat()

ccl_device float3 svm_mix_sat ( float  t,
float3  col1,
float3  col2 
)

Definition at line 183 of file color_util.h.

References hsv_to_rgb(), rgb_to_hsv(), t, and float3::y.

Referenced by svm_mix().

◆ svm_mix_screen()

ccl_device float3 svm_mix_screen ( float  t,
float3  col1,
float3  col2 
)

Definition at line 23 of file color_util.h.

References make_float3, and t.

Referenced by svm_mix().

◆ svm_mix_soft()

ccl_device float3 svm_mix_soft ( float  t,
float3  col1,
float3  col2 
)

Definition at line 230 of file color_util.h.

References make_float3, and t.

Referenced by svm_mix().

◆ svm_mix_sub()

ccl_device float3 svm_mix_sub ( float  t,
float3  col1,
float3  col2 
)

Definition at line 56 of file color_util.h.

References interp(), and t.

Referenced by svm_mix().

◆ svm_mix_val()

ccl_device float3 svm_mix_val ( float  t,
float3  col1,
float3  col2 
)

Definition at line 201 of file color_util.h.

References hsv_to_rgb(), rgb_to_hsv(), t, and float3::z.

Referenced by svm_mix().

◆ svm_separate_color()

ccl_device float3 svm_separate_color ( NodeCombSepColorType  type,
float3  color 
)