mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Merge pull request #14870 from SamGondelman/color79
Case 21048: Fix black albedo coloring
This commit is contained in:
commit
b900b75840
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ void Material::setUnlit(bool value) {
|
|||
}
|
||||
|
||||
void Material::setAlbedo(const glm::vec3& albedo, bool isSRGB) {
|
||||
_key.setAlbedo(glm::any(glm::greaterThan(albedo, glm::vec3(0.0f))));
|
||||
_key.setAlbedo(true);
|
||||
_albedo = (isSRGB ? ColorUtils::sRGBToLinearVec3(albedo) : albedo);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue