diff options
author | Määttä Antti <antti.maatta@qt.io> | 2018-05-31 14:56:38 +0300 |
---|---|---|
committer | Tomi Korpipää <tomi.korpipaa@qt.io> | 2018-06-01 04:08:54 +0000 |
commit | 8fc0026450fbd9c4591561874578001483cabacb (patch) | |
tree | b27c5e2b53b5d4a6b4df26e57cb6a43fdf8dc5ce /src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.h | |
parent | a465515bcd856d355f92255d4c0034e0d2aeda24 (diff) |
Fix lighting with custom material and shadows
There are two problems with the shadows.
1. The shader cache key for default materials is not properly initialized,
which causes invalid shader being used for the material.
2. Custom material shadow cubes and maps uniforms are not set correctly.
Only first element in those sampler arrays were set, so when custom material
lighting had more then 1 light and shadows, only one light affected the
rendered result.
Fixed the default material key and implemented proper setters for sampler
uniforms.
Task-number: QT3DS-1824
Change-Id: I0b97a4642410f37011392adf1020bc1d2bd21bb3
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Diffstat (limited to 'src/Authoring/Studio/Palettes/Inspector/InspectorControlModel.h')
0 files changed, 0 insertions, 0 deletions