Sky Sorting

-Change: ScatterSky is always drawn behind other sky objects (since it has sun and moon)
This commit is contained in:
marauder2k7 2022-03-08 20:18:47 +00:00
parent bbf92846c2
commit 382ee60d86
3 changed files with 4 additions and 4 deletions

View file

@ -182,7 +182,7 @@ void SkySphere::prepRenderImage(SceneRenderState* state)
ObjectRenderInst* ri = state->getRenderPass()->allocInst<ObjectRenderInst>();
ri->renderDelegate.bind(this, &SkySphere::_renderObject);
ri->type = RenderPassManager::RIT_Sky;
ri->defaultKey = 10;
ri->defaultKey = 9;
ri->defaultKey2 = 0;
state->getRenderPass()->addInst(ri);
}