Cycles: Update Glass BSDF to generalized_schlick #112701

Merged
Brecht Van Lommel merged 5 commits from Alaska/blender:update-glass-bsdf into blender-v4.0-release 2023-10-09 19:17:24 +02:00
Member

Update the Glass BSDF to internally use Generalized Schlick fresnel.
This allows for easier expansion of certain features in the future.

There should be no functional change from the users perspective.

Update the Glass BSDF to internally use Generalized Schlick fresnel. This allows for easier expansion of certain features in the future. There should be no functional change from the users perspective.
Alaska added the
Module
Render & Cycles
label 2023-09-22 06:51:22 +02:00
Alaska requested review from Brecht Van Lommel 2023-09-22 06:59:46 +02:00
Alaska requested review from Lukas Stockner 2023-09-22 06:59:54 +02:00
Alaska requested review from Weizhen Huang 2023-09-22 07:00:03 +02:00
Alaska requested review from Clément Foucault 2023-09-22 07:00:10 +02:00
Author
Member

There's still questions that need to be answered for this.

  • Do we actually want this change?
  • Should the Glass BSDF get reflection tinting like #112192 ? If we add support for this, then versioning could be used to ensure minimal visual impact for older files.
There's still questions that need to be answered for this. - Do we actually want this change? - ~~Should the Glass BSDF get reflection tinting like #112192 ? If we add support for this, then versioning could be used to ensure minimal visual impact for older files.~~
Clément Foucault requested changes 2023-09-22 11:36:26 +02:00
@ -19,3 +19,2 @@
ClosureReflection reflection_data;
reflection_data.weight = bsdf.x * weight;
reflection_data.color = color.rgb;
reflection_data.weight = weight;

Why change the weight here? It's used to efficiently sample the more representative closure. It doesn't change the look.

Why change the weight here? It's used to efficiently sample the more representative closure. It doesn't change the look.
Author
Member

Why change the weight here?

Mostly inexperience. I was copying something from the Principled BSDF shader without considering it in the context of a large shader like the Principled BSDF and how it might differ from a smaller shader like the glass.

> Why change the weight here? Mostly inexperience. I was copying something from the Principled BSDF shader without considering it in the context of a large shader like the Principled BSDF and how it might differ from a smaller shader like the glass.
Alaska marked this conversation as resolved
Brecht Van Lommel requested changes 2023-10-06 19:04:59 +02:00
Brecht Van Lommel left a comment
Owner

I was expecting this to just change the Cycles implementation to use the same closures to clean up the code, not to actually change the reflection tint to white.

I would not break compatibility, instead in the future we can change BSDF nodes like these to exposure more inputs that give the additional control.

I was expecting this to just change the Cycles implementation to use the same closures to clean up the code, not to actually change the reflection tint to white. I would not break compatibility, instead in the future we can change BSDF nodes like these to exposure more inputs that give the additional control.
Alaska changed title from Cycles/EEVEE: Update Glass BSDF to match Principled BSDF to WIP: Cycles: Update Glass BSDF to generalized_schlick 2023-10-07 13:10:07 +02:00
Alaska force-pushed update-glass-bsdf from d164c954c4 to 2ee22a0c7e 2023-10-07 13:55:27 +02:00 Compare
Alaska changed title from WIP: Cycles: Update Glass BSDF to generalized_schlick to Cycles: Update Glass BSDF to generalized_schlick 2023-10-07 13:56:54 +02:00
Alaska requested review from Brecht Van Lommel 2023-10-07 13:57:24 +02:00
Brecht Van Lommel approved these changes 2023-10-09 16:49:06 +02:00

@blender-bot build

@blender-bot build
Brecht Van Lommel changed title from Cycles: Update Glass BSDF to generalized_schlick to Cycles: Update Glass BSDF to generalized_schlick 2023-10-09 16:49:35 +02:00
brecht changed target branch from main to blender-v4.0-release 2023-10-09 16:49:37 +02:00
Brecht Van Lommel merged commit 85c4df2c42 into blender-v4.0-release 2023-10-09 19:17:24 +02:00
Brecht Van Lommel deleted branch update-glass-bsdf 2023-10-09 19:17:26 +02:00
Sign in to join this conversation.
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
3 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#112701
No description provided.