Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/workbench/workbench_data.c
| Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | else { | ||||
| copy_v3_v3(wd->background_color_high, wd->background_color_high); | copy_v3_v3(wd->background_color_high, wd->background_color_high); | ||||
| copy_v3_v3(wd->background_color_low, wd->background_color_low); | copy_v3_v3(wd->background_color_low, wd->background_color_low); | ||||
| } | } | ||||
| } | } | ||||
| else { | else { | ||||
| zero_v3(wd->background_color_low); | zero_v3(wd->background_color_low); | ||||
| zero_v3(wd->background_color_high); | zero_v3(wd->background_color_high); | ||||
| } | } | ||||
| wd->background_dither_factor = workbench_background_dither_factor(wpd); | |||||
| studiolight_update_world(wpd, wpd->studio_light, wd); | studiolight_update_world(wpd, wpd->studio_light, wd); | ||||
| copy_v3_v3(wd->object_outline_color, wpd->shading.object_outline_color); | copy_v3_v3(wd->object_outline_color, wpd->shading.object_outline_color); | ||||
| wd->object_outline_color[3] = 1.0f; | wd->object_outline_color[3] = 1.0f; | ||||
| wd->curvature_ridge = 0.5f / max_ff(SQUARE(wpd->shading.curvature_ridge_factor), 1e-4f); | wd->curvature_ridge = 0.5f / max_ff(SQUARE(wpd->shading.curvature_ridge_factor), 1e-4f); | ||||
| wd->curvature_valley = 0.7f / max_ff(SQUARE(wpd->shading.curvature_valley_factor), 1e-4f); | wd->curvature_valley = 0.7f / max_ff(SQUARE(wpd->shading.curvature_valley_factor), 1e-4f); | ||||
| ▲ Show 20 Lines • Show All 111 Lines • Show Last 20 Lines | |||||