summaryrefslogtreecommitdiff
path: root/src/common/string_util.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2015-07-21 01:24:27 -0300
committerGravatar Yuri Kunde Schlesner2015-07-23 16:51:24 -0300
commit4e092022267e4f232429013653ba1bd4ac8b0a05 (patch)
treeb24f12735d533f342e0a1e026fdb9c8fec7283c8 /src/common/string_util.cpp
parentMerge pull request #977 from yuriks/glenable-tex2d (diff)
downloadyuzu-4e092022267e4f232429013653ba1bd4ac8b0a05.tar.gz
yuzu-4e092022267e4f232429013653ba1bd4ac8b0a05.tar.xz
yuzu-4e092022267e4f232429013653ba1bd4ac8b0a05.zip
VideoCore: Saturate vertex colors before interpolating
During testing, it was discovered that hardware does not interpolate colors output by the vertex shader as-is. Rather, it drops the sign and saturates the value to 1.0. This is done before interpolation, such that (e.g.) interpolating outputs 1.5 and -0.5 is equivalent to as if the shader had output the values 1.0 and 0.5 instead, with the interpolated value never crossing 0.0. This change has been tested against hardware.
Diffstat (limited to 'src/common/string_util.cpp')
0 files changed, 0 insertions, 0 deletions