EEVEE-Next: Shadow: Add LOD system to directional clipmap shadows #120031

Merged
Clément Foucault merged 16 commits from fclem/blender:eevee-next-shadow-directional-lod into main 2024-03-29 16:23:06 +01:00

This act in multiple phases:

  • A shader scan the whole clipmap after tilemap finalize to gather
    where valid tiles from lower LODs are available and write the page
    location and LOD offset at invalid tiles location.

  • At sampling time we add the LOD offset before the pixel page
    modulo operation. This offset is equal to the amount of pages of
    the sampling LOD needed to have the same modulo result as the
    sampled LOD.

The whole thing being very tricky, I added a lot of unit testing.

This has no use for now but the system is needed to implement:

  • Shadows from Volumetrics at lower cost & memory footprint.
  • Fixing soft shadows artifacts.

These will be implemented in separate PRs.

This act in multiple phases: - A shader scan the whole clipmap after tilemap finalize to gather where valid tiles from lower LODs are available and write the page location and LOD offset at invalid tiles location. - At sampling time we add the LOD offset before the pixel page modulo operation. This offset is equal to the amount of pages of the **sampling** LOD needed to have the same modulo result as the **sampled** LOD. The whole thing being very tricky, I added a lot of unit testing. This has no use for now but the system is needed to implement: - Shadows from Volumetrics at lower cost & memory footprint. - Fixing soft shadows artifacts. These will be implemented in separate PRs.
Clément Foucault added this to the 4.2 LTS milestone 2024-03-28 19:32:33 +01:00
Clément Foucault added the
Interest
EEVEE
label 2024-03-28 19:32:33 +01:00
Clément Foucault added 12 commits 2024-03-28 19:32:47 +01:00
Clément Foucault added 2 commits 2024-03-29 15:35:17 +01:00
Clément Foucault added 2 commits 2024-03-29 16:21:20 +01:00
Clément Foucault merged commit 7797231c6d into main 2024-03-29 16:23:06 +01:00
Clément Foucault deleted branch eevee-next-shadow-directional-lod 2024-03-29 16:23:08 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#120031
No description provided.