Merge pull request #92388 from sunfl0w/fix-compatibility-albedo
Fix albedo value wraparound in Compatibility render mode
This commit is contained in:
commit
4ce3e169a9
|
@ -1523,6 +1523,9 @@ void main() {
|
|||
#CODE : FRAGMENT
|
||||
}
|
||||
|
||||
// Keep albedo values in positive number range as negative values "wraparound" into positive numbers resulting in wrong colors
|
||||
albedo = max(albedo, vec3(0.0));
|
||||
|
||||
#ifdef LIGHT_VERTEX_USED
|
||||
vertex = light_vertex;
|
||||
#ifdef USE_MULTIVIEW
|
||||
|
|
Loading…
Reference in New Issue