RHI: fix the PerVertexColorMaterial shader
The Light struct was not conformant to the std140 layout.
Use the existing phong.inc.frag code fragment to fix this and reduce
code duplication at the same time.
Fixes: QTBUG-115025
Fixes: QTBUG-115565
Pick-to: 6.7
Change-Id: I70840a53fe48cab67200b09e17072ccc6a142a6a
Reviewed-by: Mike Krus <mike.krus@kdab.com>
| commit | 4b0bb2f95da3c14aa20b610f36d9f04f6c82c8f3 |
| parent | 491e25e100f5eace863a6cab4b0fc5a508cae7bf |
| author | Aurélien Brooke <aurelien@bahiasoft.fr> |
| committer | Aurélien Brooke <aurelien@bahiasoft.fr> |
| commit time | Sat, 13 Jan 2024 15:36:44 +0000 |