Blender V5.0
blender::nodes::node_shader_tex_sky_cc Namespace Reference

Classes

struct  SkyModelPreetham

Functions

static void node_declare (NodeDeclarationBuilder &b)
static void node_shader_buts_tex_sky (uiLayout *layout, bContext *C, PointerRNA *ptr)
static void node_shader_init_tex_sky (bNodeTree *, bNode *node)
static float sky_perez_function (const float *lam, float theta, float gamma)
static void sky_precompute_old (SkyModelPreetham *sunsky, const float sun_angles[], float turbidity)
static void sky_simplify_multiscatter_elevation_rotation (float &sun_elevation, float &sun_rotation)
static int node_shader_gpu_tex_sky (GPUMaterial *mat, bNode *node, bNodeExecData *, GPUNodeStack *in, GPUNodeStack *out)
static void node_shader_update_sky (bNodeTree *ntree, bNode *node)
static void node_gather_link_searches (GatherLinkSearchOpParams &params)

Function Documentation

◆ node_declare()

void blender::nodes::node_shader_tex_sky_cc::node_declare ( NodeDeclarationBuilder & b)
static

Definition at line 23 of file node_shader_tex_sky.cc.

References b.

◆ node_gather_link_searches()

void blender::nodes::node_shader_tex_sky_cc::node_gather_link_searches ( GatherLinkSearchOpParams & params)
static

◆ node_shader_buts_tex_sky()

void blender::nodes::node_shader_tex_sky_cc::node_shader_buts_tex_sky ( uiLayout * layout,
bContext * C,
PointerRNA * ptr )
static

◆ node_shader_gpu_tex_sky()

int blender::nodes::node_shader_tex_sky_cc::node_shader_gpu_tex_sky ( GPUMaterial * mat,
bNode * node,
bNodeExecData * ,
GPUNodeStack * in,
GPUNodeStack * out )
static

◆ node_shader_init_tex_sky()

◆ node_shader_update_sky()

void blender::nodes::node_shader_tex_sky_cc::node_shader_update_sky ( bNodeTree * ntree,
bNode * node )
static

◆ sky_perez_function()

float blender::nodes::node_shader_tex_sky_cc::sky_perez_function ( const float * lam,
float theta,
float gamma )
static

Definition at line 97 of file node_shader_tex_sky.cc.

References cosf, and expf.

Referenced by sky_precompute_old().

◆ sky_precompute_old()

◆ sky_simplify_multiscatter_elevation_rotation()

void blender::nodes::node_shader_tex_sky_cc::sky_simplify_multiscatter_elevation_rotation ( float & sun_elevation,
float & sun_rotation )
static

Definition at line 151 of file node_shader_tex_sky.cc.

References copysignf, fabsf, fmodf, and M_PI.

Referenced by node_shader_gpu_tex_sky().