Blender
V3.3
|
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 *UNUSED(ntree), 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 int | node_shader_gpu_tex_sky (GPUMaterial *mat, bNode *node, bNodeExecData *UNUSED(execdata), GPUNodeStack *in, GPUNodeStack *out) |
static void | node_shader_update_sky (bNodeTree *ntree, bNode *node) |
static void | node_gather_link_searches (GatherLinkSearchOpParams ¶ms) |
|
static |
Definition at line 17 of file node_shader_tex_sky.cc.
References usdtokens::b(), and N_.
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 234 of file node_shader_tex_sky.cc.
References IFACE_, node, blender::nodes::NodeDeclaration::outputs(), params, blender::nodes::search_link_ops_for_declarations(), SOCK_FLOAT, SOCK_OUT, and tex.
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 23 of file node_shader_tex_sky.cc.
References BKE_scene_uses_blender_eevee(), C, col, CTX_data_scene(), ptr, RNA_boolean_get(), RNA_enum_get(), scene, SHD_SKY_HOSEK, SHD_SKY_NISHITA, SHD_SKY_PREETHAM, TIP_, UI_ITEM_R_SPLIT_EMPTY_NAME, uiItemL(), uiItemR(), and uiLayoutColumn().
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 145 of file node_shader_tex_sky.cc.
References acosf, 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, float(), get_XYZ_to_RGB_for_gpu(), GPU_stack_link(), GPU_uniform(), M_PI, M_PI_2, node, node_shader_gpu_default_tex_coord(), node_shader_gpu_tex_mapping(), usdtokens::out(), blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::radiance, SKY_ArHosekSkyModelState::radiances, SKY_arhosek_xyz_skymodelstate_alloc_init(), SKY_arhosekskymodelstate_free(), sky_precompute_old(), tex, and xyz_to_rgb().
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 63 of file node_shader_tex_sky.cc.
References BKE_texture_colormapping_default(), BKE_texture_mapping_default(), DEG2RADF, node, SHD_SKY_NISHITA, tex, and TEXMAP_TYPE_POINT.
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 226 of file node_shader_tex_sky.cc.
References node, nodeFindSocket(), nodeSetSocketAvailability(), ntree, SOCK_IN, and tex.
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 91 of file node_shader_tex_sky.cc.
Referenced by sky_precompute_old().
|
static |
Definition at line 100 of file node_shader_tex_sky.cc.
References 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, M_PI, blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::radiance, sky_perez_function(), T, T2, and tanf.
Referenced by node_shader_gpu_tex_sky().