Skip to content

Shadow Mapping#74

Open
n1k0la0s wants to merge 5 commits into
papagiannakis:developfrom
n1k0la0s:feature/shadows
Open

Shadow Mapping#74
n1k0la0s wants to merge 5 commits into
papagiannakis:developfrom
n1k0la0s:feature/shadows

Conversation

@n1k0la0s

@n1k0la0s n1k0la0s commented Jan 7, 2026

Copy link
Copy Markdown

This contribution adds a complete shadow mapping extension to the Elements engine. It supports both directional and point lights using a standard two-pass rendering technique. For point lights, a geometry shader is used to generate the cubemap texture in a single pass.
The extension is interactive, with an ImGUI control panel that allows for real time adjustments.

Key features include:

  • Toggling shadows on and off.
  • Enabling/disabling soft shadows (Percentage-Closer Filtering).
  • Adjusting shadow bias to prevent artifacts.
  • Visualizing the raw light depth map

The submission also includes two example scenes to demonstrate the functionality and a unit test for the core shader component.

Extension Folder Name
Shadows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant