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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user