Changeset View
Changeset View
Standalone View
Standalone View
source/blender/nodes/shader/nodes/node_shader_tex_sky.c
| Show All 37 Lines | static void node_shader_init_tex_sky(bNodeTree *UNUSED(ntree), bNode *node) | ||||
| BKE_texture_colormapping_default(&tex->base.color_mapping); | BKE_texture_colormapping_default(&tex->base.color_mapping); | ||||
| tex->sun_direction[0] = 0.0f; | tex->sun_direction[0] = 0.0f; | ||||
| tex->sun_direction[1] = 0.0f; | tex->sun_direction[1] = 0.0f; | ||||
| tex->sun_direction[2] = 1.0f; | tex->sun_direction[2] = 1.0f; | ||||
| tex->turbidity = 2.2f; | tex->turbidity = 2.2f; | ||||
| tex->ground_albedo = 0.3f; | tex->ground_albedo = 0.3f; | ||||
| tex->sun_disc = true; | tex->sun_disc = true; | ||||
| tex->sun_size = DEG2RADF(0.545); | tex->sun_size = DEG2RADF(0.545); | ||||
| tex->sun_intensity = 1.0f; | |||||
| tex->sun_elevation = M_PI_2; | tex->sun_elevation = M_PI_2; | ||||
| tex->sun_rotation = 0.0f; | tex->sun_rotation = 0.0f; | ||||
| tex->altitude = 0; | tex->altitude = 0.0f; | ||||
| tex->air_density = 1.0f; | tex->air_density = 1.0f; | ||||
| tex->dust_density = 1.0f; | tex->dust_density = 1.0f; | ||||
| tex->ozone_density = 1.0f; | tex->ozone_density = 1.0f; | ||||
| tex->sky_model = SHD_SKY_NISHITA; | tex->sky_model = SHD_SKY_NISHITA; | ||||
| node->storage = tex; | node->storage = tex; | ||||
| } | } | ||||
| static int node_shader_gpu_tex_sky(GPUMaterial *mat, | static int node_shader_gpu_tex_sky(GPUMaterial *mat, | ||||
| Show All 28 Lines | |||||