Blender  V3.3
COM_DistanceYCCMatteOperation.cc
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later
2  * Copyright 2011 Blender Foundation. */
3 
5 
6 namespace blender::compositor {
7 
8 float DistanceYCCMatteOperation::calculate_distance(const float key[4], const float image[4])
9 {
10  /* only measure the second 2 values */
11  return len_v2v2(key + 1, image + 1);
12 }
13 
14 } // namespace blender::compositor
MINLINE float len_v2v2(const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
float calculate_distance(const float key[4], const float image[4]) override
depth_tx normal_tx diffuse_light_tx specular_light_tx volume_light_tx environment_tx ambient_occlusion_tx aov_value_tx in_weight_img image(1, GPU_R32F, Qualifier::WRITE, ImageType::FLOAT_2D_ARRAY, "out_weight_img") .image(3