|
Blender
V2.93
|
Go to the source code of this file.
Classes | |
| struct | SkyModelPreetham |
| struct | XYZ_to_RGB |
Typedefs | |
| typedef struct SkyModelPreetham | SkyModelPreetham |
| typedef struct XYZ_to_RGB | XYZ_to_RGB |
Functions | |
| 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 void | get_XYZ_to_RGB_for_gpu (XYZ_to_RGB *data) |
| 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 *UNUSED(ntree), bNode *node) |
| void | register_node_type_sh_tex_sky (void) |
Variables | |
| static bNodeSocketTemplate | sh_node_tex_sky_in [] |
| static bNodeSocketTemplate | sh_node_tex_sky_out [] |
| typedef struct SkyModelPreetham SkyModelPreetham |
| typedef struct XYZ_to_RGB XYZ_to_RGB |
|
static |
Definition at line 122 of file node_shader_tex_sky.c.
References data, IMB_colormangement_get_xyz_to_rgb(), and xyz_to_rgb().
Referenced by node_shader_gpu_tex_sky().
|
static |
Definition at line 136 of file node_shader_tex_sky.c.
References acosf, atan2f, SkyModelPreetham::config_x, SkyModelPreetham::config_Y, 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(), 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().
Definition at line 35 of file node_shader_tex_sky.c.
References BKE_texture_colormapping_default(), BKE_texture_mapping_default(), DEG2RADF, MEM_callocN, node, SHD_SKY_NISHITA, tex, and TEXMAP_TYPE_POINT.
Referenced by register_node_type_sh_tex_sky().
Definition at line 217 of file node_shader_tex_sky.c.
References node, nodeFindSocket(), nodeSetSocketAvailability(), SOCK_IN, and tex.
Referenced by register_node_type_sh_tex_sky().
| void register_node_type_sh_tex_sky | ( | void | ) |
Definition at line 226 of file node_shader_tex_sky.c.
References NODE_CLASS_TEXTURE, node_copy_standard_storage(), node_free_standard_storage(), node_shader_gpu_tex_sky(), node_shader_init_tex_sky(), node_shader_update_sky(), NODE_SIZE_MIDDLE, node_type_gpu(), node_type_init(), node_type_size_preset(), node_type_socket_templates(), node_type_storage(), node_type_update(), nodeRegisterType(), SH_NODE_TEX_SKY, sh_node_tex_sky_in, sh_node_tex_sky_out, and sh_node_type_base().
Referenced by registerShaderNodes().
Definition at line 68 of file node_shader_tex_sky.c.
Referenced by sky_precompute_old().
|
static |
Definition at line 77 of file node_shader_tex_sky.c.
References SkyModelPreetham::config_x, SkyModelPreetham::config_Y, SkyModelPreetham::config_y, M_PI, SkyModelPreetham::radiance, sky_perez_function(), T, T2, and tanf.
Referenced by node_shader_gpu_tex_sky().
|
static |
Definition at line 25 of file node_shader_tex_sky.c.
Referenced by register_node_type_sh_tex_sky().
|
static |
Definition at line 30 of file node_shader_tex_sky.c.
Referenced by register_node_type_sh_tex_sky().