Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
RenderFrame.cpp File Reference

Assemble and submit shared scene views, lighting and shadow passes. More...

#include "./RenderFrame.hpp"
#include "../rhi/Shader.hpp"
#include "../rhi/ShaderEmbeds.generated.hpp"
#include "../store/LightStore.hpp"
#include "../draw/BatchBuilder.hpp"
#include "../draw/ImmediateDraw.hpp"
#include "../draw/MeshGeometry.hpp"
#include "../draw/PlacementBounds.hpp"
#include "../../ecs/components/Transform.hpp"
#include "../../ecs/components/Light.hpp"
#include "../../ecs/components/Occluder.hpp"
#include "../../ecs/components/ReflectionProbe.hpp"
#include "../../ecs/components/ShadowCaster2D.hpp"
#include "../../ecs/components/SortingGroup.hpp"
#include "../../ecs/components/SpriteMask.hpp"
#include "../../ecs/components/Sprite.hpp"
#include "../../ecs/components/Hierarchy.hpp"
#include "../../ecs/components/MeshRenderer.hpp"
#include "../../resource/ShaderParser.hpp"
#include "../../core/Log.hpp"
#include "../../core/FrameProfiler.hpp"
#include "../../core/Hash.hpp"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "../RenderOrigin.hpp"
#include <algorithm>
#include <cmath>
#include <cstring>
#include <limits>
#include <utility>
#include <vector>
Include dependency graph for RenderFrame.cpp:

Go to the source code of this file.

Namespaces

namespace  esengine

Functions

glm::vec3 esengine::srgbToLinearCpu (const glm::vec3 &c)
static glm::vec3 esengine::lightForward (ecs::Transform *transform)
static glm::vec3 esengine::environmentToWorld (const glm::vec3 &d, f32 yawDegrees)
static void esengine::neutralSkyIrradiance (std::array< glm::vec3, 9 > &sh)
static void esengine::frustumCorners (const glm::mat4 &invVP, glm::vec3 out[8])
static f32 esengine::splitFraction (u32 i, u32 count, f32 nearDist, f32 farDist, f32 lambda)
static glm::mat4 esengine::spotProjection (f32 fovDegrees, f32 nearDist, f32 farDist)
static glm::vec3 esengine::shadowUp (const glm::vec3 &dir)
 An up that cannot be parallel to dir, whichever way it points.
static glm::mat4 esengine::coneShadow (const glm::vec3 &pos, const glm::vec3 &dir, f32 fovDegrees, f32 reach)
static glm::vec3 esengine::cubeFace (u32 index)

Detailed Description

Assemble and submit shared scene views, lighting and shadow passes.

Definition in file RenderFrame.cpp.