summaryrefslogtreecommitdiffstats
path: root/src/video_core/swrasterizer/rasterizer.h
diff options
context:
space:
mode:
authorwwylele <wwylele@gmail.com>2017-05-20 22:17:12 +0200
committerwwylele <wwylele@gmail.com>2017-05-21 08:09:15 +0200
commit36526c63ef8809d228b01df57ea8455f39076e9a (patch)
treef8d81b42dc7165e7ff91d3c9d1a1c3bdb2c98e27 /src/video_core/swrasterizer/rasterizer.h
parentMerge pull request #2661 from Subv/uds5 (diff)
downloadyuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar.gz
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar.bz2
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar.lz
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar.xz
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.tar.zst
yuzu-36526c63ef8809d228b01df57ea8455f39076e9a.zip
Diffstat (limited to 'src/video_core/swrasterizer/rasterizer.h')
-rw-r--r--src/video_core/swrasterizer/rasterizer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/video_core/swrasterizer/rasterizer.h b/src/video_core/swrasterizer/rasterizer.h
index 3a72ac343..2f0877581 100644
--- a/src/video_core/swrasterizer/rasterizer.h
+++ b/src/video_core/swrasterizer/rasterizer.h
@@ -23,13 +23,15 @@ struct Vertex : Shader::OutputVertex {
pos = pos * factor + vtx.pos * (float24::FromFloat32(1) - factor);
// TODO: Should perform perspective correct interpolation here...
+ quat = quat * factor + vtx.quat * (float24::FromFloat32(1) - factor);
+ color = color * factor + vtx.color * (float24::FromFloat32(1) - factor);
tc0 = tc0 * factor + vtx.tc0 * (float24::FromFloat32(1) - factor);
tc1 = tc1 * factor + vtx.tc1 * (float24::FromFloat32(1) - factor);
+ tc0_w = tc0_w * factor + vtx.tc0_w * (float24::FromFloat32(1) - factor);
+ view = view * factor + vtx.view * (float24::FromFloat32(1) - factor);
tc2 = tc2 * factor + vtx.tc2 * (float24::FromFloat32(1) - factor);
screenpos = screenpos * factor + vtx.screenpos * (float24::FromFloat32(1) - factor);
-
- color = color * factor + vtx.color * (float24::FromFloat32(1) - factor);
}
// Linear interpolation