[Tizen] Fix bug that IBLFactor / Roughness not works well when we change material 48/303848/1
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 5 Jan 2024 16:01:50 +0000 (01:01 +0900)
committerEunki Hong <eunkiki.hong@samsung.com>
Sun, 7 Jan 2024 00:52:34 +0000 (09:52 +0900)
commit519b293f4452ddb4177af714e841c2b68a7335e5
tree39cd5f2e5bb0836b0b8c825d004672a44cfff11b
parent1518a40b4f0b28ac14096a7070312a8146caf0ef
[Tizen] Fix bug that IBLFactor / Roughness not works well when we change material

There was some bug when we change Material info, uMaxLOD and uIblIntensity does not applied what primitive has.

This is because Material's SetUniform API overwrite the value of those uniform.

This patch make we ensure the order of uniform register, so let we use correct LOD and IBL intensity.

Change-Id: Ic14b7f9b6c0e443ac17188a8968ac71a7c6328d6
Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
automated-tests/src/dali-scene3d/utc-Dali-Model.cpp
dali-scene3d/internal/model-components/material-impl.cpp
dali-scene3d/internal/model-components/model-primitive-impl.cpp