diff options
| author | 2015-09-09 22:39:43 -0400 | |
|---|---|---|
| committer | 2016-02-05 17:17:28 -0500 | |
| commit | b0030755708849eb27fe2bf1cc481c5ab905468e (patch) | |
| tree | 966520312f4a1db78c4d36181782793d5ee62ce2 /src/video_core/clipper.cpp | |
| parent | pica: Implement fragment lighting LUTs. (diff) | |
| download | yuzu-b0030755708849eb27fe2bf1cc481c5ab905468e.tar.gz yuzu-b0030755708849eb27fe2bf1cc481c5ab905468e.tar.xz yuzu-b0030755708849eb27fe2bf1cc481c5ab905468e.zip | |
pica: Implement decoding of basic fragment lighting components.
- Diffuse
- Distance attenuation
- float16/float20 types
- Vertex Shader 'view' output
Diffstat (limited to 'src/video_core/clipper.cpp')
| -rw-r--r-- | src/video_core/clipper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/video_core/clipper.cpp b/src/video_core/clipper.cpp index 5d609da06..3a09d62f4 100644 --- a/src/video_core/clipper.cpp +++ b/src/video_core/clipper.cpp | |||
| @@ -68,6 +68,8 @@ static void InitScreenCoordinates(OutputVertex& vtx) | |||
| 68 | 68 | ||
| 69 | float24 inv_w = float24::FromFloat32(1.f) / vtx.pos.w; | 69 | float24 inv_w = float24::FromFloat32(1.f) / vtx.pos.w; |
| 70 | vtx.color *= inv_w; | 70 | vtx.color *= inv_w; |
| 71 | vtx.view *= inv_w; | ||
| 72 | vtx.quat *= inv_w; | ||
| 71 | vtx.tc0 *= inv_w; | 73 | vtx.tc0 *= inv_w; |
| 72 | vtx.tc1 *= inv_w; | 74 | vtx.tc1 *= inv_w; |
| 73 | vtx.tc2 *= inv_w; | 75 | vtx.tc2 *= inv_w; |