VisuTwin Canvas
C++ 3D Engine — Metal Backend
Loading...
Searching...
No Matches
shadowCasterFiltering.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2025-2026 Arnis Lektauers
3//
4// Created by Arnis Lektauers on 13.02.2026.
5//
6#pragma once
7
8namespace visutwin::canvas
9{
10 class Camera;
11 class MeshInstance;
12 class RenderComponent;
13
14 // Checks component/entity state and camera layer compatibility for shadow casting.
15 bool shouldRenderShadowRenderComponent(const RenderComponent* renderComponent, const Camera* camera);
16
17 // Checks mesh-level shadow caster rules (castShadow/material/frustum/cull/node state).
18 bool shouldRenderShadowMeshInstance(MeshInstance* meshInstance, Camera* shadowCamera);
19}
Perspective or orthographic camera with projection matrix, jitter (TAA), and render target binding.
Definition camera.h:40
Renderable instance of a Mesh with its own material, transform node, and optional GPU instancing.
bool shouldRenderShadowMeshInstance(MeshInstance *meshInstance, Camera *shadowCamera)
bool shouldRenderShadowRenderComponent(const RenderComponent *renderComponent, const Camera *camera)