Fix bug that IBLFactor / Roughness not works well when we change material 44/303844/5
authorEunki Hong <eunkiki.hong@samsung.com>
Fri, 5 Jan 2024 16:01:50 +0000 (01:01 +0900)
committerEunki, Hong <eunkiki.hong@samsung.com>
Wed, 10 Jan 2024 14:36:48 +0000 (23:36 +0900)
commitc799d2969c05fa5bffbb92dd1069ac03b6902c38
treececf4809ba3cd38249ef6979b45b0a98d221267c
parent69f6d2a0caf97b3813c935ab02d8c1b22d1cd8a3
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