Blender V5.0
node_composite_lensdist.cc File Reference
#include "BLI_math_base.h"
#include "BLI_math_base.hh"
#include "BLI_math_vector.hh"
#include "BLI_math_vector_types.hh"
#include "BLI_noise.hh"
#include "RNA_types.hh"
#include "GPU_shader.hh"
#include "GPU_texture.hh"
#include "COM_node_operation.hh"
#include "COM_utilities.hh"
#include "node_composite_util.hh"

Go to the source code of this file.

Classes

class  blender::nodes::node_composite_lensdist_cc::LensDistortionOperation

Namespaces

namespace  blender
namespace  blender::nodes
namespace  blender::nodes::node_composite_lensdist_cc

Macros

#define MINIMUM_DISTORTION   -0.999f
#define HORIZONTAL_DISPERSION_SCALE   5.0f
#define RADIAL_DISPERSION_SCALE   4.0f
#define DISTORTION_SCALE   4.0f

Functions

static void blender::nodes::node_composite_lensdist_cc::cmp_node_lensdist_declare (NodeDeclarationBuilder &b)
static void blender::nodes::node_composite_lensdist_cc::node_composit_init_lensdist (bNodeTree *, bNode *node)
static float blender::nodes::node_composite_lensdist_cc::compute_distortion_scale (const float distortion, const float distance_squared)
static float3 blender::nodes::node_composite_lensdist_cc::compute_chromatic_distortion_scale (const float3 &chromatic_distortion, const float distance_squared)
static float2 blender::nodes::node_composite_lensdist_cc::compute_distorted_uv (const float2 &uv, const float uv_scale, const int2 &size)
static int blender::nodes::node_composite_lensdist_cc::compute_number_of_integration_steps_heuristic (const float distortion, const bool use_jitter)
static int4 blender::nodes::node_composite_lensdist_cc::compute_number_of_integration_steps (const float3 &chromatic_distortion, const int2 &size, const float2 &uv, const float distance_squared, const bool use_jitter)
static float blender::nodes::node_composite_lensdist_cc::get_jitter (const int2 &texel, const int seed, const bool use_jitter)
static float4 blender::nodes::node_composite_lensdist_cc::integrate_distortion (const int2 &texel, const Result &input, const int2 &size, const float3 &chromatic_distortion, const int start, const int end, const float distance_squared, const float2 &uv, const int steps, const bool use_jitter)
static void blender::nodes::node_composite_lensdist_cc::radial_lens_distortion (const int2 texel, const Result &input, Result &output, const int2 &size, const float3 &chromatic_distortion, const float scale, const bool use_jitter)
static NodeOperationblender::nodes::node_composite_lensdist_cc::get_compositor_operation (Context &context, DNode node)
static void register_node_type_cmp_lensdist ()

Variables

static const EnumPropertyItem blender::nodes::node_composite_lensdist_cc::type_items []

Macro Definition Documentation

◆ DISTORTION_SCALE

◆ HORIZONTAL_DISPERSION_SCALE

◆ MINIMUM_DISTORTION

◆ RADIAL_DISPERSION_SCALE

#define RADIAL_DISPERSION_SCALE   4.0f

Function Documentation

◆ register_node_type_cmp_lensdist()