Skip to content

Commit

Permalink
Minor tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
fluffyfreak committed May 12, 2019
1 parent 1662a1b commit 1e56b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions src/GasGiant.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,15 +307,12 @@ GasGiant::GasGiant(const SystemBody *body) :
BaseSphere(body),
m_hasTempCampos(false),
m_tempCampos(0.0),
m_hasJobRequest { false, false, false, false, false, false },
m_hasGpuJobRequest(false),
m_timeDelay(s_initialCPUDelayTime)
{
s_allGasGiants.push_back(this);

for (int i = 0; i < NUM_PATCHES; i++) {
m_hasJobRequest[i] = false;
}

Random rng(GetSystemBody()->GetSeed() + 4609837);

const bool bEnableGPUJobs = (Pi::config->Int("EnableGPUJobs") == 1);
Expand Down Expand Up @@ -669,7 +666,7 @@ void GasGiant::Render(Graphics::Renderer *renderer, const matrix4x4d &modelView,
//Update material parameters
//XXX no need to calculate AP every frame
m_materialParameters.atmosphere = GetSystemBody()->CalcAtmosphereParams();
m_materialParameters.atmosphere.center = trans * vector3d(0.0, 0.0, 0.0);
m_materialParameters.atmosphere.center = trans * vector3d(0.0);
m_materialParameters.atmosphere.planetRadius = radius;

m_materialParameters.shadows = shadows;
Expand Down
2 changes: 1 addition & 1 deletion src/GeoSphere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ void GeoSphere::Render(Graphics::Renderer *renderer, const matrix4x4d &modelView
//Update material parameters
//XXX no need to calculate AP every frame
m_materialParameters.atmosphere = GetSystemBody()->CalcAtmosphereParams();
m_materialParameters.atmosphere.center = trans * vector3d(0.0, 0.0, 0.0);
m_materialParameters.atmosphere.center = trans * vector3d(0.0);
m_materialParameters.atmosphere.planetRadius = radius;

m_materialParameters.shadows = shadows;
Expand Down

0 comments on commit 1e56b86

Please sign in to comment.