Blender V5.0
bokeh_kernel.cc File Reference
#include <cstdint>
#include <memory>
#include "BLI_hash.hh"
#include "BLI_math_base.hh"
#include "BLI_math_numbers.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_types.hh"
#include "GPU_shader.hh"
#include "COM_bokeh_kernel.hh"
#include "COM_context.hh"
#include "COM_result.hh"
#include "COM_utilities.hh"

Go to the source code of this file.

Namespaces

namespace  blender
namespace  blender::compositor

Functions

bool blender::compositor::operator== (const BokehKernelKey &a, const BokehKernelKey &b)
static float blender::compositor::compute_exterior_angle (int sides)
static float blender::compositor::compute_rotation (float angle, int sides)
static float2 blender::compositor::get_regular_polygon_vertex_position (const int vertex_index, const float exterior_angle, const float rotation)
static float2 blender::compositor::closest_point_on_line (const float2 point, const float2 line_start, const float2 line_end)
static float blender::compositor::bokeh (const float2 point, const float circumradius, const float exterior_angle, const float rotation, const float roundness, const float catadioptric)
static float4 blender::compositor::spectral_bokeh (const int2 texel, const int2 size, const float exterior_angle, const float rotation, const float roundness, const float catadioptric, const float lens_shift)