Stop copying the matrix and remove r_triangle

This commit is contained in:
Magnus Norddahl 2016-11-20 02:07:55 +01:00
commit 7ac0cace7d
18 changed files with 183 additions and 1745 deletions

View file

@ -176,13 +176,13 @@ void RenderPolyWall::Render(const TriMatrix &worldToClip)
}
TriUniforms uniforms;
uniforms.objectToClip = worldToClip;
uniforms.light = (uint32_t)(GetLightLevel() / 255.0f * 256.0f);
uniforms.flags = 0;
uniforms.subsectorDepth = SubsectorDepth;
PolyDrawArgs args;
args.uniforms = uniforms;
args.objectToClip = &worldToClip;
args.vinput = vertices;
args.vcount = 4;
args.mode = TriangleDrawMode::Fan;