diff --git a/Engine/source/environment/scatterSky.cpp b/Engine/source/environment/scatterSky.cpp index 8b5f69a7b..e7472973b 100644 --- a/Engine/source/environment/scatterSky.cpp +++ b/Engine/source/environment/scatterSky.cpp @@ -651,7 +651,7 @@ void ScatterSky::prepRenderImage( SceneRenderState *state ) ObjectRenderInst *ri = renderPass->allocInst(); ri->renderDelegate.bind( this, &ScatterSky::_render ); ri->type = RenderPassManager::RIT_Sky; - ri->defaultKey = 10; + ri->defaultKey = 15; ri->defaultKey2 = 0; renderPass->addInst(ri); @@ -700,7 +700,7 @@ void ScatterSky::prepRenderImage( SceneRenderState *state ) moonRI->renderDelegate.bind( this, &ScatterSky::_renderMoon ); moonRI->type = RenderPassManager::RIT_Sky; // Render after sky objects and before CloudLayer! - moonRI->defaultKey = 5; + moonRI->defaultKey = 10; moonRI->defaultKey2 = 0; renderPass->addInst(moonRI); } diff --git a/Engine/source/environment/skyBox.cpp b/Engine/source/environment/skyBox.cpp index 468ecb8dd..8bd378272 100644 --- a/Engine/source/environment/skyBox.cpp +++ b/Engine/source/environment/skyBox.cpp @@ -645,4 +645,4 @@ BaseMatInstance* SkyBox::_getMaterialInstance() DefineEngineMethod( SkyBox, postApply, void, (), , "") { object->inspectPostApply(); -} \ No newline at end of file +} diff --git a/Engine/source/environment/skySphere.cpp b/Engine/source/environment/skySphere.cpp index 9f52c660c..a367b8854 100644 --- a/Engine/source/environment/skySphere.cpp +++ b/Engine/source/environment/skySphere.cpp @@ -182,7 +182,7 @@ void SkySphere::prepRenderImage(SceneRenderState* state) ObjectRenderInst* ri = state->getRenderPass()->allocInst(); ri->renderDelegate.bind(this, &SkySphere::_renderObject); ri->type = RenderPassManager::RIT_Sky; - ri->defaultKey = 10; + ri->defaultKey = 9; ri->defaultKey2 = 0; state->getRenderPass()->addInst(ri); }