Fixed atmosphere previews not using the correct camera
This commit is contained in:
parent
541f1e065f
commit
0ae9fe94b2
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include "CameraDefinition.h"
|
#include "CameraDefinition.h"
|
||||||
#include "tools/lighting.h"
|
#include "tools/lighting.h"
|
||||||
#include "SurfaceMaterial.h"
|
#include "SurfaceMaterial.h"
|
||||||
|
#include "Scenery.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Atmosphere previews.
|
* Atmosphere previews.
|
||||||
|
@ -148,7 +149,7 @@ static inline int _checkHit(Vector3 eye, Vector3 direction, Vector3* hit, Vector
|
||||||
AtmosphereColorPreviewRenderer::AtmosphereColorPreviewRenderer(double heading):
|
AtmosphereColorPreviewRenderer::AtmosphereColorPreviewRenderer(double heading):
|
||||||
heading(heading)
|
heading(heading)
|
||||||
{
|
{
|
||||||
render_camera->setLocation(Vector3(0.0, 7.0, 0.0));
|
getScenery()->getCamera()->setLocation(Vector3(0.0, 7.0, 0.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
Color AtmosphereColorPreviewRenderer::getColor2D(double x, double y, double)
|
Color AtmosphereColorPreviewRenderer::getColor2D(double x, double y, double)
|
||||||
|
|
Loading…
Reference in a new issue