WIP: EEVEE Next: Subsurface Scattering #107407

Draft
Miguel Pozo wants to merge 14 commits from pragma37/blender:pull-eevee-next-sss into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

Port of subsurface scattering from the eevee-rewrite branch to EEVEE Next.
https://projects.blender.org/fclem/blender/src/branch/eevee-rewrite

Other changes:

  • Fix gbuffer normal and ior packing.
  • Write the material eClosureBits to the gbuffer stencil.

Known Issues:

  • SSS Transmittance energy is greater than Cycles with the same settings.
Port of subsurface scattering from the eevee-rewrite branch to EEVEE Next. https://projects.blender.org/fclem/blender/src/branch/eevee-rewrite Other changes: * Fix gbuffer normal and ior packing. * Write the material eClosureBits to the gbuffer stencil. Known Issues: * SSS Transmittance energy is greater than Cycles with the same settings.
Miguel Pozo added 11 commits 2023-04-27 18:12:18 +07:00
Miguel Pozo added this to the EEVEE & Viewport project 2023-04-27 18:12:43 +07:00
Miguel Pozo requested review from Clément Foucault 2023-04-27 18:12:53 +07:00
Miguel Pozo added the
Module
Eevee & Viewport
label 2023-04-27 18:13:05 +07:00
Miguel Pozo added 1 commit 2023-04-27 18:16:34 +07:00
Clément Foucault requested changes 2023-05-11 16:39:46 +07:00
@ -392,0 +395,4 @@
if (closure_bits_ & CLOSURE_SSS) {
inst_.subsurface.end_sync();
subsurface_ps_.init();

This subsurface pass should go inside SubsurfaceModule.

Note that, currently, the subsurface algorithm is quite simple, we might extend it in the future. Making everything in one place will avoid much trouble later on.

You can init the pass in all cases and only submit it if the closure bit is present.

This subsurface pass should go inside `SubsurfaceModule`. Note that, currently, the subsurface algorithm is quite simple, we might extend it in the future. Making everything in one place will avoid much trouble later on. You can init the pass in all cases and only submit it if the closure bit is present.
pragma37 marked this conversation as resolved
@ -183,0 +184,4 @@
.define("SSS_TRANSMITTANCE")
.sampler(SSS_TRANSMITTANCE_TEX_SLOT, ImageType::FLOAT_1D, "sss_transmittance_tx");
GPU_SHADER_CREATE_INFO(eevee_subsurface_eval)

Move subsurface infos to their own file.

Move subsurface infos to their own file.
pragma37 marked this conversation as resolved
Miguel Pozo force-pushed pull-eevee-next-sss from e26cef6b9d to 1d28e81235 2023-05-12 16:01:09 +07:00 Compare

Reviewers

Clément Foucault requested changes 2023-05-11 16:39:46 +07:00
This pull request is marked as a work in progress.
This branch is out-of-date with the base branch
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
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
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
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
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 Assignees
2 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#107407
There is no content yet.