rsx: Clamp negative fog distance

This commit is contained in:
kd-11 2018-03-25 13:39:27 +03:00
parent 887ea43e39
commit 5aac8aa424
1 changed files with 1 additions and 0 deletions

View File

@ -65,6 +65,7 @@ namespace program_common
template_body += " break;\n";
template_body += " }\n";
template_body += "\n";
template_body += " result.x = max(result.x, 0.);\n";
template_body += " result.y = clamp(result.y, 0., 1.);\n";
template_body += " return result;\n";
template_body += "}\n\n";