Improved "near_frustum" render test

This commit is contained in:
Michaël Lemaire 2015-10-09 00:55:36 +02:00
parent 2be80bf8e2
commit c62cf3a0a4
2 changed files with 9 additions and 1 deletions

View file

@ -16,6 +16,7 @@
#include "LightingManager.h"
#include "LightFilter.h"
#include "GodRaysSampler.h"
#include "Rasterizer.h"
#include <sstream>
@ -207,7 +208,10 @@ static void testNearFrustum()
SoftwareCanvasRenderer renderer(&scenery);
renderer.setSize(400, 300);
renderer.setQuality(0.1);
startTestRender(&renderer, "near_frustum");
startTestRender(&renderer, "near_frustum_good");
renderer.getWaterRasterizer()->setAutoCutLimit(1000.0);
startTestRender(&renderer, "near_frustum_bad");
}
static void testCloudsNearGround()

View file

@ -26,6 +26,10 @@ public:
inline RenderProgress *getProgressHelper() const {return progress;}
inline bool isFinished() const {return finished;}
inline Rasterizer *getSkyRasterizer() const {return rasterizers[0];}
inline Rasterizer *getWaterRasterizer() const {return rasterizers[1];}
inline Rasterizer *getTerrainRasterizer() const {return rasterizers[2];}
virtual void setQuality(double factor) override;
/**