Split RenderPolyScene into two to allow rendering from multiple viewpoints

This commit is contained in:
Magnus Norddahl 2016-11-24 05:51:37 +01:00
commit 47aaf781c6
9 changed files with 364 additions and 255 deletions

View file

@ -25,7 +25,7 @@
#include "sbar.h"
#include "r_data/r_translate.h"
#include "r_poly_sky.h"
#include "r_poly.h"
#include "r_poly_portal.h"
#include "r_sky.h" // for skyflatnum
PolySkyDome::PolySkyDome()
@ -53,7 +53,7 @@ void PolySkyDome::Render(const TriMatrix &worldToClip)
TriUniforms uniforms;
uniforms.light = 256;
uniforms.flags = 0;
uniforms.subsectorDepth = RenderPolyScene::SkySubsectorDepth;
uniforms.subsectorDepth = RenderPolyPortal::SkySubsectorDepth;
int rc = mRows + 1;