Fix albedo value wraparound in Compatibility render mode
@@ -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