pica: Implement decoding of basic fragment lighting components.
- Diffuse - Distance attenuation - float16/float20 types - Vertex Shader 'view' output
This commit is contained in:
parent
281bc90ad2
commit
b003075570
5 changed files with 120 additions and 15 deletions
|
@ -68,6 +68,8 @@ static void InitScreenCoordinates(OutputVertex& vtx)
|
|||
|
||||
float24 inv_w = float24::FromFloat32(1.f) / vtx.pos.w;
|
||||
vtx.color *= inv_w;
|
||||
vtx.view *= inv_w;
|
||||
vtx.quat *= inv_w;
|
||||
vtx.tc0 *= inv_w;
|
||||
vtx.tc1 *= inv_w;
|
||||
vtx.tc2 *= inv_w;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue