Blender V5.3
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 (ui::Layout &layout, bContext *, 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_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 27 of file node_shader_tex_sky.cc.

References b, and node_declare().

Referenced by node_declare().

◆ node_gather_link_searches()

◆ node_shader_buts_tex_sky()

◆ 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

Definition at line 185 of file node_shader_tex_sky.cc.

References acosf, blender::NodeTexSky::aerosol_density, blender::NodeTexSky::air_density, blender::NodeTexSky::altitude, atan2f, blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::config_x, blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::config_Y, blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::config_y, SKY_ArHosekSkyModelState::configs, blender::Array< T, InlineBufferCapacity, Allocator >::data(), float, fmaxf, blender::get_XYZ_to_RGB_for_gpu(), blender::GPU_constant(), blender::GPU_image_sky(), blender::GPU_SAMPLER_EXTEND_MODE_EXTEND, blender::GPU_SAMPLER_EXTEND_MODE_REPEAT, blender::GPU_SAMPLER_FILTERING_LINEAR, GPU_SKY_HEIGHT, GPU_SKY_WIDTH, blender::GPU_stack_link(), blender::GPU_uniform(), blender::NodeTexSky::ground_albedo, blender::gpu::shader::metadata::in, layer, M_PI, M_PI_2, node, blender::node_shader_gpu_default_tex_coord(), blender::node_shader_gpu_tex_mapping(), node_shader_gpu_tex_sky(), blender::gpu::shader::metadata::out, blender::NodeTexSky::ozone_density, blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::radiance, SKY_ArHosekSkyModelState::radiances, sampler, blender::SHD_SKY_HOSEK, blender::SHD_SKY_PREETHAM, blender::SHD_SKY_SINGLE_SCATTERING, SKY_arhosek_xyz_skymodelstate_alloc_init(), SKY_arhosekskymodelstate_free(), SKY_earth_intersection_angle(), blender::NodeTexSky::sky_model, SKY_multiple_scattering_precompute_sun(), SKY_multiple_scattering_precompute_texture(), sky_precompute_old(), sky_simplify_elevation_rotation(), SKY_single_scattering_precompute_sun(), SKY_single_scattering_precompute_texture(), blender::NodeTexSky::sun_direction, blender::NodeTexSky::sun_disc, blender::NodeTexSky::sun_elevation, blender::NodeTexSky::sun_intensity, blender::NodeTexSky::sun_rotation, blender::NodeTexSky::sun_size, blender::NodeTexSky::turbidity, and xyz_to_rgb().

Referenced by node_shader_gpu_tex_sky().

◆ node_shader_init_tex_sky()

◆ node_shader_update_sky()

◆ 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 99 of file node_shader_tex_sky.cc.

References cosf, expf, and sky_perez_function().

Referenced by sky_perez_function(), and sky_precompute_old().

◆ sky_precompute_old()

◆ sky_simplify_elevation_rotation()

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