Fix T79184: Specular highlight turns object black on some studio lights

This case was leaving some data uninitialized, producing some NaNs in the
fragment shader.
This commit is contained in:
Clément Foucault 2020-10-07 14:08:59 +02:00
parent 4ea3f3b316
commit a81b059f1d
Notes: blender-bot 2023-02-14 04:07:50 +01:00
Referenced by issue #79184, Specular highlight turns object black on some studio lights.
1 changed files with 1 additions and 0 deletions

View File

@ -123,6 +123,7 @@ static void workbench_studiolight_data_update(WORKBENCH_PrivateData *wpd, WORKBE
copy_v3_fl3(light->light_direction, 1.0f, 0.0f, 0.0f);
copy_v3_fl(light->specular_color, 0.0f);
copy_v3_fl(light->diffuse_color, 0.0f);
light->wrapped = 0.0f;
}
}