Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/screen.c
| Show First 20 Lines • Show All 863 Lines • ▼ Show 20 Lines | void BKE_screen_view3d_shading_init(View3DShading *shading) | ||||
| shading->xray_alpha_wire = 0.0f; | shading->xray_alpha_wire = 0.0f; | ||||
| shading->cavity_valley_factor = 1.0f; | shading->cavity_valley_factor = 1.0f; | ||||
| shading->cavity_ridge_factor = 1.0f; | shading->cavity_ridge_factor = 1.0f; | ||||
| shading->cavity_type = V3D_SHADING_CAVITY_CURVATURE; | shading->cavity_type = V3D_SHADING_CAVITY_CURVATURE; | ||||
| shading->curvature_ridge_factor = 1.0f; | shading->curvature_ridge_factor = 1.0f; | ||||
| shading->curvature_valley_factor = 1.0f; | shading->curvature_valley_factor = 1.0f; | ||||
| copy_v3_fl(shading->single_color, 0.8f); | copy_v3_fl(shading->single_color, 0.8f); | ||||
| copy_v3_fl(shading->background_color, 0.05f); | copy_v3_fl(shading->background_color, 0.05f); | ||||
| shading->studiolight_intensity = 1.0f; | |||||
| } | } | ||||
| /* magic zoom calculation, no idea what | /* magic zoom calculation, no idea what | ||||
| * it signifies, if you find out, tell me! -zr | * it signifies, if you find out, tell me! -zr | ||||
| */ | */ | ||||
| /* simple, its magic dude! | /* simple, its magic dude! | ||||
| * well, to be honest, this gives a natural feeling zooming | * well, to be honest, this gives a natural feeling zooming | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||