Fix ambient color contribution in Phong shader


The ambient color is not visible if the diffuse color is black. The
ambientColor contribution is wrongly multiplied by diffuse.rgb instead
of ambient.rgb.

Fix the issue by adding ambientColor to the adsModel() function, and
multiplying it by ambient.rgb.

[ChangeLog][QPhongMaterial] Fix ambient color contribution

Fixes: QTBUG-77665
Fixes: QTBUG-120241
Pick-to: 6.7
Change-Id: I0a156eb61e0f57ff4c0d6755ff8fd750877bf33d
Reviewed-by: Mike Krus <mike.krus@kdab.com>
commit491e25e100f5eace863a6cab4b0fc5a508cae7bf
parentf7a3d25006ff2c7c966aacdcdd7214a2ea6221d8
authorAurélien Brooke <aurelien@bahiasoft.fr>
committerAurélien Brooke <aurelien@bahiasoft.fr>
commit timeSat, 13 Jan 2024 15:36:39 +0000