Blender  V2.93
Functions
light.cpp File Reference
#include "render/light.h"
#include "device/device.h"
#include "render/background.h"
#include "render/film.h"
#include "render/graph.h"
#include "render/integrator.h"
#include "render/mesh.h"
#include "render/nodes.h"
#include "render/object.h"
#include "render/scene.h"
#include "render/shader.h"
#include "render/stats.h"
#include "util/util_foreach.h"
#include "util/util_hash.h"
#include "util/util_logging.h"
#include "util/util_path.h"
#include "util/util_progress.h"
#include "util/util_task.h"

Go to the source code of this file.

Functions

static CCL_NAMESPACE_BEGIN void shade_background_pixels (Device *device, DeviceScene *dscene, int width, int height, vector< float3 > &pixels, Progress &progress)
 
 NODE_DEFINE (Light)
 
static void background_cdf (int start, int end, int res_x, int res_y, const vector< float3 > *pixels, float2 *cond_cdf)
 

Function Documentation

◆ background_cdf()

static void background_cdf ( int  start,
int  end,
int  res_x,
int  res_y,
const vector< float3 > *  pixels,
float2 cond_cdf 
)
static

Definition at line 539 of file light.cpp.

References average(), M_PI_F, sinf, float2::x, and float2::y.

◆ NODE_DEFINE()

NODE_DEFINE ( Light  )

◆ shade_background_pixels()

static CCL_NAMESPACE_BEGIN void shade_background_pixels ( Device device,
DeviceScene dscene,
int  width,
int  height,
vector< float3 > &  pixels,
Progress progress 
)
static