| 30 | } |
| 31 | |
| 32 | void Skybox::Draw(RenderContext& renderContext) |
| 33 | { |
| 34 | bool isReady; |
| 35 | if (CustomMaterial) |
| 36 | { |
| 37 | isReady = CustomMaterial->IsLoaded() && CustomMaterial->IsSurface() && EnumHasAnyFlags(CustomMaterial->GetDrawModes(), DrawPass::GBuffer); |
| 38 | } |
| 39 | else |
| 40 | { |
| 41 | setupProxy(); |
| 42 | isReady = _proxyMaterial && _proxyMaterial->IsReady(); |
| 43 | } |
| 44 | if (isReady && EnumHasAnyFlags(renderContext.View.Flags, ViewFlags::Sky)) |
| 45 | { |
| 46 | renderContext.List->Sky = this; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | void Skybox::Serialize(SerializeStream& stream, const void* otherObj) |
| 51 | { |
nothing calls this directly
no test coverage detected