EEVEE Next: Double sided for GI #113362

Merged
Miguel Pozo merged 5 commits from pragma37/blender:pull-eevee-double-sided-gi into main 2023-10-09 17:02:22 +02:00
Member

Allow disabling surfels backfaces from contributing to GI.

Allow disabling surfels backfaces from contributing to GI.
Miguel Pozo force-pushed pull-eevee-double-sided-gi from cb6f216b85 to 75c73b8f21 2023-10-06 20:34:26 +02:00 Compare
Miguel Pozo added 1 commit 2023-10-09 12:21:52 +02:00
Miguel Pozo added the
Module
EEVEE & Viewport
label 2023-10-09 12:25:48 +02:00
Miguel Pozo added 1 commit 2023-10-09 12:25:51 +02:00
Miguel Pozo added the
Interest
EEVEE
label 2023-10-09 12:26:04 +02:00
Miguel Pozo changed title from WIP: EEVEE Next: Double sided for GI to EEVEE Next: Double sided for GI 2023-10-09 12:26:12 +02:00
Miguel Pozo requested review from Clément Foucault 2023-10-09 12:31:38 +02:00
Clément Foucault requested changes 2023-10-09 14:35:37 +02:00
Clément Foucault left a comment
Member

I think it would be nice to generalize this option to all probe capture. If there is a need to split it per probe type, that can be done later.

I think it would be nice to generalize this option to all probe capture. If there is a need to split it per probe type, that can be done later.
@ -260,0 +260,4 @@
col.prop(mat, "use_backface_culling", text="Camera", invert_checkbox=True)
if mat.blend_method not in {'OPAQUE', 'CLIP', 'HASHED'}:
col.prop(mat, "show_transparent_back", text="Transparency")
col.prop(mat, "double_sided_gi", text="GI")

Rename double_sided_gi to use_backface_culling_probe.

Do not move show_transparent_back here (it is not the same as a backface culling).

Rename `double_sided_gi` to `use_backface_culling_probe`. Do not move `show_transparent_back` here (it is not the same as a backface culling).
pragma37 marked this conversation as resolved
@ -568,3 +568,3 @@
return shadow.surface_material_add(gpumat);
case MAT_PIPE_CAPTURE:
return capture.surface_material_add(gpumat);
return capture.surface_material_add(blender_mat, gpumat);

Don't pass blender_mat here. You can get the material from the gpumat using GPU_material_get_material.

Don't pass `blender_mat` here. You can get the material from the gpumat using `GPU_material_get_material`.
Author
Member

Why? Most pipelines receive the blender_mat directly as parameter.

Why? Most pipelines receive the `blender_mat` directly as parameter.

Nevermind, I misread something.

Nevermind, I misread something.
fclem marked this conversation as resolved
@ -342,6 +342,7 @@ enum {
MA_BL_SS_REFRACTION = (1 << 1),
MA_BL_CULL_BACKFACE = (1 << 2),
MA_BL_TRANSLUCENCY = (1 << 3),
MA_BL_DOUBLE_SIDED_GI = (1 << 4),

MA_BL_CULL_BACKFACE_PORBE

`MA_BL_CULL_BACKFACE_PORBE`
pragma37 marked this conversation as resolved
@ -860,1 +860,4 @@
prop = RNA_def_property(srna, "double_sided_gi", PROP_BOOLEAN, PROP_NONE);
RNA_def_property_boolean_sdna(prop, nullptr, "blend_flag", MA_BL_DOUBLE_SIDED_GI);
RNA_def_property_ui_text(prop, "Double Sided GI", "Use back faces for GI");

GI is not a widespread accronym in the blender codebase. Use "probe capture" instead.

GI is not a widespread accronym in the blender codebase. Use "probe capture" instead.
pragma37 marked this conversation as resolved
Miguel Pozo added 1 commit 2023-10-09 15:48:55 +02:00
Clément Foucault approved these changes 2023-10-09 16:42:40 +02:00
@ -264,3 +269,3 @@
row.active = ((mat.blend_method == 'CLIP') or (mat.shadow_method == 'CLIP'))
row.prop(mat, "alpha_threshold")

make format

`make format`
Author
Member

Python file!

Python file!
pragma37 marked this conversation as resolved
Miguel Pozo added 1 commit 2023-10-09 16:57:45 +02:00
Miguel Pozo merged commit f54205cfdd into main 2023-10-09 17:02:22 +02:00
Miguel Pozo deleted branch pull-eevee-double-sided-gi 2023-10-09 17:02:24 +02: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
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#113362
No description provided.