|
Blender V4.5
|
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 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 ¶ms) |
|
static |
Definition at line 25 of file node_shader_tex_sky.cc.
References b, and node_declare().
Referenced by node_declare().
|
static |
Definition at line 287 of file node_shader_tex_sky.cc.
References blender::nodes::GatherLinkSearchOpParams::add_item(), blender::nodes::LinkSearchOpParams::add_node(), IFACE_, blender::nodes::GatherLinkSearchOpParams::in_out(), node_gather_link_searches(), blender::nodes::GatherLinkSearchOpParams::node_tree(), blender::nodes::GatherLinkSearchOpParams::node_type(), blender::nodes::GatherLinkSearchOpParams::other_socket(), blender::nodes::NodeDeclaration::outputs, blender::nodes::search_link_ops_for_declarations(), SOCK_FLOAT, SOCK_OUT, blender::bke::bNodeType::static_declaration, bNode::storage, NodeTexSky::sun_disc, bNodeSocket::type, bNodeTree::typeinfo, and blender::nodes::LinkSearchOpParams::update_and_connect_available_socket().
Referenced by node_gather_link_searches().
|
static |
Definition at line 31 of file node_shader_tex_sky.cc.
References BKE_scene_uses_blender_eevee(), C, uiLayout::column(), CTX_data_scene(), uiLayout::label(), node_shader_buts_tex_sky(), uiLayout::prop(), RNA_boolean_get(), RNA_enum_get(), RPT_, SHD_SKY_HOSEK, SHD_SKY_NISHITA, SHD_SKY_PREETHAM, and UI_ITEM_R_SPLIT_EMPTY_NAME.
Referenced by node_shader_buts_tex_sky().
|
static |
Definition at line 153 of file node_shader_tex_sky.cc.
References acosf, NodeTexSky::air_density, 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(), NodeTexSky::dust_density, blender::IndexRange::first(), fmodf, get_XYZ_to_RGB_for_gpu(), GPU_constant(), GPU_image_sky(), GPU_SAMPLER_EXTEND_MODE_EXTEND, GPU_SAMPLER_EXTEND_MODE_REPEAT, GPU_SAMPLER_FILTERING_LINEAR, GPU_SKY_HEIGHT, GPU_SKY_WIDTH, GPU_stack_link(), GPU_uniform(), NodeTexSky::ground_albedo, i, in, blender::IndexRange::IndexRange(), M_PI, M_PI_2, node_shader_gpu_default_tex_coord(), node_shader_gpu_tex_mapping(), node_shader_gpu_tex_sky(), blender::IndexRange::one_after_last(), out, NodeTexSky::ozone_density, blender::threading::parallel_for(), blender::nodes::node_shader_tex_sky_cc::SkyModelPreetham::radiance, SKY_ArHosekSkyModelState::radiances, SKY_arhosek_xyz_skymodelstate_alloc_init(), SKY_arhosekskymodelstate_free(), NodeTexSky::sky_model, SKY_nishita_skymodel_precompute_texture(), sky_precompute_old(), bNode::storage, NodeTexSky::sun_direction, NodeTexSky::sun_elevation, NodeTexSky::sun_rotation, NodeTexSky::turbidity, and xyz_to_rgb().
Referenced by node_shader_gpu_tex_sky().
|
static |
Definition at line 71 of file node_shader_tex_sky.cc.
References NodeTexSky::air_density, NodeTexSky::altitude, NodeTexSky::base, BKE_texture_colormapping_default(), BKE_texture_mapping_default(), NodeTexBase::color_mapping, DEG2RADF, NodeTexSky::dust_density, NodeTexSky::ground_albedo, MEM_callocN(), node_shader_init_tex_sky(), NodeTexSky::ozone_density, SHD_SKY_NISHITA, NodeTexSky::sky_model, bNode::storage, NodeTexSky::sun_direction, NodeTexSky::sun_disc, NodeTexSky::sun_elevation, NodeTexSky::sun_intensity, NodeTexSky::sun_rotation, NodeTexSky::sun_size, NodeTexBase::tex_mapping, TEXMAP_TYPE_POINT, and NodeTexSky::turbidity.
Referenced by node_shader_init_tex_sky().
|
static |
Definition at line 278 of file node_shader_tex_sky.cc.
References blender::bke::node_find_socket(), blender::bke::node_set_socket_availability(), node_shader_update_sky(), NodeTexSky::sky_model, SOCK_IN, bNode::storage, and NodeTexSky::sun_disc.
Referenced by node_shader_update_sky().
|
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().
|
static |
Definition at line 108 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(), sky_precompute_old(), T, T2, and tanf.
Referenced by node_shader_gpu_tex_sky(), and sky_precompute_old().