mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 01:03:59 +02:00
fix black albedo coloring
This commit is contained in:
parent
632d6e8a73
commit
7fe0e5909e
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