pica: Implement decoding of basic fragment lighting components.

- Diffuse
- Distance attenuation
- float16/float20 types
- Vertex Shader 'view' output
This commit is contained in:
bunnei 2015-09-09 22:39:43 -04:00
parent 281bc90ad2
commit b003075570
5 changed files with 120 additions and 15 deletions

View file

@ -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;