|
Blender V5.3
|
#include "gpu_shader_compat.hh"#include "gpu_shader_math_base.bsl.hh"#include "gpu_shader_math_constants.bsl.hh"Go to the source code of this file.
Functions | |
| float | sky_angle_between (float thetav, float phiv, float theta, float phi) |
| float | sky_precise_angle (float3 a, float3 b) |
| float3 | sky_spherical_coordinates (float3 dir) |
| float | sky_perez_function (float4 lam03, float lam4, float theta, float gamma) |
| float3 | xyY_to_xyz (float x, float y, float Y) |
| void | node_tex_sky_preetham (float3 co, float4 config_Y03, float config_Y4, float4 config_x03, float config_x4, float4 config_y03, float config_y4, float2 sun_angles, float3 radiance, float3 xyz_to_r, float3 xyz_to_g, float3 xyz_to_b, float4 &color) |
| float | sky_radiance_hosekwilkie (float4 config03, float4 config47, float config8, float theta, float gamma) |
| void | node_tex_sky_hosekwilkie (float3 co, float4 config_x03, float4 config_x47, float4 config_y03, float4 config_y47, float4 config_z03, float4 config_z47, float3 config_xyz8, float2 sun_angles, float3 radiance, float3 xyz_to_r, float3 xyz_to_g, float3 xyz_to_b, float4 &color) |
| void | node_tex_sky_nishita (float3 co, float, float sun_rotation, float3 xyz_to_r, float3 xyz_to_g, float3 xyz_to_b, float3 sun_pixel_bottom, float3 sun_pixel_top, float4 sun_params, sampler2DArray ima, float layer, float4 &color) |
| void node_tex_sky_hosekwilkie | ( | float3 | co, |
| float4 | config_x03, | ||
| float4 | config_x47, | ||
| float4 | config_y03, | ||
| float4 | config_y47, | ||
| float4 | config_z03, | ||
| float4 | config_z47, | ||
| float3 | config_xyz8, | ||
| float2 | sun_angles, | ||
| float3 | radiance, | ||
| float3 | xyz_to_r, | ||
| float3 | xyz_to_g, | ||
| float3 | xyz_to_b, | ||
| float4 & | color ) |
Definition at line 126 of file gpu_shader_material_tex_sky.bsl.hh.
References dot(), M_PI_2, min, node_tex_sky_hosekwilkie(), sky_angle_between(), sky_radiance_hosekwilkie(), sky_spherical_coordinates(), float3::x, float3::y, and float3::z.
Referenced by node_tex_sky_hosekwilkie().
| void node_tex_sky_nishita | ( | float3 | co, |
| float | , | ||
| float | sun_rotation, | ||
| float3 | xyz_to_r, | ||
| float3 | xyz_to_g, | ||
| float3 | xyz_to_b, | ||
| float3 | sun_pixel_bottom, | ||
| float3 | sun_pixel_top, | ||
| float4 | sun_params, | ||
| sampler2DArray | ima, | ||
| float | layer, | ||
| float4 & | color ) |
Definition at line 167 of file gpu_shader_material_tex_sky.bsl.hh.
References cos, fade(), layer, M_PI, M_PI_2, mix, node_tex_sky_nishita(), normalize, sign(), sin, sin_from_cos(), sky_precise_angle(), sky_spherical_coordinates(), sqrt, texture(), transpose, float4::w, float3::x, float4::x, x, xyz_to_rgb(), float3::y, float4::y, y, and float4::z.
Referenced by node_tex_sky_nishita().
| void node_tex_sky_preetham | ( | float3 | co, |
| float4 | config_Y03, | ||
| float | config_Y4, | ||
| float4 | config_x03, | ||
| float | config_x4, | ||
| float4 | config_y03, | ||
| float | config_y4, | ||
| float2 | sun_angles, | ||
| float3 | radiance, | ||
| float3 | xyz_to_r, | ||
| float3 | xyz_to_g, | ||
| float3 | xyz_to_b, | ||
| float4 & | color ) |
Definition at line 70 of file gpu_shader_material_tex_sky.bsl.hh.
References dot(), M_PI_2, min, node_tex_sky_preetham(), sky_angle_between(), sky_perez_function(), sky_spherical_coordinates(), x, xyY_to_xyz(), Y, and y.
Referenced by node_tex_sky_preetham().
Definition at line 11 of file gpu_shader_material_tex_sky.bsl.hh.
References acos, cos, M_PI, sin, and sky_angle_between().
Referenced by node_tex_sky_hosekwilkie(), node_tex_sky_preetham(), sky_angle_between(), sky_angle_between(), sky_radiance_hosek(), and sky_radiance_preetham().
Definition at line 39 of file gpu_shader_material_tex_sky.bsl.hh.
References cos, exp, and sky_perez_function().
Referenced by node_tex_sky_preetham(), sky_perez_function(), sky_perez_function(), sky_perez_function(), sky_radiance_preetham(), and sky_texture_precompute_preetham().
Definition at line 27 of file gpu_shader_material_tex_sky.bsl.hh.
References atan, b, length(), and sky_precise_angle().
Referenced by node_tex_sky_nishita(), and sky_precise_angle().
| float sky_radiance_hosekwilkie | ( | float4 | config03, |
| float4 | config47, | ||
| float | config8, | ||
| float | theta, | ||
| float | gamma ) |
Definition at line 109 of file gpu_shader_material_tex_sky.bsl.hh.
References cos, exp, pow, sky_radiance_hosekwilkie(), and sqrt.
Referenced by node_tex_sky_hosekwilkie(), and sky_radiance_hosekwilkie().
Definition at line 32 of file gpu_shader_material_tex_sky.bsl.hh.
References atan, length(), M_PI_2, sky_spherical_coordinates(), float3::x, float3::y, and float3::z.
Referenced by node_tex_sky_hosekwilkie(), node_tex_sky_nishita(), node_tex_sky_preetham(), sky_spherical_coordinates(), sky_spherical_coordinates(), sky_texture_precompute_hosek(), and sky_texture_precompute_preetham().
Definition at line 48 of file gpu_shader_material_tex_sky.bsl.hh.
References X, x, xyY_to_xyz(), Y, y, and Z.
Referenced by node_tex_sky_preetham(), sky_radiance_preetham(), xyY_to_xyz(), and xyY_to_xyz().