Add ViewFlags::Sky for conditional sky/skybox rendering
This commit is contained in:
@@ -40,7 +40,7 @@ void Skybox::Draw(RenderContext& renderContext)
|
||||
setupProxy();
|
||||
isReady = _proxyMaterial && _proxyMaterial->IsReady();
|
||||
}
|
||||
if (isReady)
|
||||
if (isReady && EnumHasAnyFlags(renderContext.View.Flags, ViewFlags::Sky))
|
||||
{
|
||||
renderContext.List->Sky = this;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user