MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Draw

Method Draw

Source/Engine/Level/Actors/Skybox.cpp:32–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32void 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
50void Skybox::Serialize(SerializeStream& stream, const void* otherObj)
51{

Callers

nothing calls this directly

Calls 4

EnumHasAnyFlagsFunction · 0.85
IsLoadedMethod · 0.45
GetDrawModesMethod · 0.45
IsReadyMethod · 0.45

Tested by

no test coverage detected