void DeferredSkyboxRenderPass::SkyboxPass (const Scene* scene, const Camera* camera) { GL::Enable (GL_STENCIL_TEST); GL::StencilFunc (GL_EQUAL, 0, 0xFF); GL::StencilOp (GL_KEEP, GL_KEEP, GL_KEEP); Pipeline::CreateProjection (camera->GetProjectionMatrix ()); Pipeline::SendCamera (camera); /* * Get scene's skybox */ Skybox* sceneSkybox = scene->GetSkybox (); /* * Check if there is an actual skybox attached */ if (sceneSkybox != nullptr) { sceneSkybox->GetRenderer ()->Draw (); } GL::Disable (GL_STENCIL_TEST); }