Blender  V3.3
Functions
scene/light.cpp File Reference
#include "device/device.h"
#include "scene/background.h"
#include "scene/film.h"
#include "scene/integrator.h"
#include "scene/light.h"
#include "scene/mesh.h"
#include "scene/object.h"
#include "scene/scene.h"
#include "scene/shader.h"
#include "scene/shader_graph.h"
#include "scene/shader_nodes.h"
#include "scene/stats.h"
#include "integrator/shader_eval.h"
#include "util/foreach.h"
#include "util/hash.h"
#include "util/log.h"
#include "util/path.h"
#include "util/progress.h"
#include "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 522 of file scene/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