EEVEE-Next: Make closure evaluation fully type agnostic #118079

Merged
Clément Foucault merged 31 commits from fclem/blender:eevee-next-forward-closure-agnostic into main 2024-02-24 00:00:20 +01:00

The goal of this task is to remove noise in the most common material
layering configuration.

Subsequently, this also split the evaluation of different closure to
their own buffer to avoid discontinuity when denoising them.

This commit does a few things:

  • Removes use of global for closure random number.
  • Refactor the forward evaluation to be closure type agnostic.
  • Refactor the gbuffer lib to be closure type agnostic.
  • Reduces the number of picked closure to 3 maximum or less.
  • Use GPU_MATFLAG_COAT to tag the use of multiple usage of glossy BSDF.
  • Use two closure bin for Glossy when more than one.
  • Set closure bin per type for best noise level for most materials.
  • Change the gbuffer header to put the closure at their bin index.
  • Add a method to get a closure from the gbuffer from a specific bin.
  • Split lighting passes per Closure.

TODO:

  • Clean naming convention between closure index / layer / bin.
  • Fix performance issue with Raytracing on.
The goal of this task is to remove noise in the most common material layering configuration. Subsequently, this also split the evaluation of different closure to their own buffer to avoid discontinuity when denoising them. This commit does a few things: - [x] Removes use of global for closure random number. - [x] Refactor the forward evaluation to be closure type agnostic. - [x] Refactor the gbuffer lib to be closure type agnostic. - [x] Reduces the number of picked closure to 3 maximum or less. - [x] Use GPU_MATFLAG_COAT to tag the use of multiple usage of glossy BSDF. - [x] Use two closure bin for Glossy when more than one. - [x] Set closure bin per type for best noise level for most materials. - [x] Change the gbuffer header to put the closure at their bin index. - [x] Add a method to get a closure from the gbuffer from a specific bin. - [x] Split lighting passes per Closure. TODO: - [x] Clean naming convention between closure index / layer / bin. - [x] Fix performance issue with Raytracing on.
Clément Foucault added this to the 4.2 LTS milestone 2024-02-10 10:30:35 +01:00
Clément Foucault added the
Interest
EEVEE
label 2024-02-10 10:30:35 +01:00
Clément Foucault added 8 commits 2024-02-10 10:30:45 +01:00
Clément Foucault added 1 commit 2024-02-19 20:34:23 +01:00
# Conflicts:
#	source/blender/draw/engines/eevee_next/eevee_shader.cc
#	source/blender/draw/engines/eevee_next/shaders/eevee_lightprobe_eval_lib.glsl
Clément Foucault added 12 commits 2024-02-21 19:53:57 +01:00
Clément Foucault added 1 commit 2024-02-22 17:30:31 +01:00
This avoids cross contamination of closures during
denoising passes.
Clément Foucault added 2 commits 2024-02-22 18:39:31 +01:00
Clément Foucault added 2 commits 2024-02-23 14:43:27 +01:00
Clément Foucault added 1 commit 2024-02-23 16:00:53 +01:00
Clément Foucault added 1 commit 2024-02-23 17:16:38 +01:00
Clément Foucault added 2 commits 2024-02-23 18:50:25 +01:00
Clément Foucault added 1 commit 2024-02-23 22:15:54 +01:00
Cleanup naming convention
All checks were successful
buildbot/vexp-code-patch-lint Build done.
buildbot/vexp-code-patch-linux-x86_64 Build done.
buildbot/vexp-code-patch-darwin-arm64 Build done.
buildbot/vexp-code-patch-darwin-x86_64 Build done.
buildbot/vexp-code-patch-windows-amd64 Build done.
buildbot/vexp-code-patch-coordinator Build done.
dea6ab258f
Author
Member

@blender-bot build

@blender-bot build
Clément Foucault changed title from WIP: EEVEE-Next: Make closure evaluation fully type agnostic to EEVEE-Next: Make closure evaluation fully type agnostic 2024-02-23 23:58:07 +01:00
Clément Foucault merged commit 06d3627c43 into main 2024-02-24 00:00:20 +01:00
Clément Foucault deleted branch eevee-next-forward-closure-agnostic 2024-02-24 00:00:22 +01:00
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
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
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
Viewport & EEVEE
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
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
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
Module
Viewport & EEVEE
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Severity
High
Severity
Low
Severity
Normal
Severity
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#118079
No description provided.