Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer diagram improvements #189

Merged
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified images/layer_graph.png
Copy link
Contributor

@virtualzavie virtualzavie May 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although this node diagram is now closer to the layering diagram (illustration in the PR description), it makes me realise we might have an inconsistency.

From this tree structure, I understand the dielectric specular lobe, represented by the "gloss" node, will only apply to the diffuse layer. If the translucent or subsurface weight is 1, both the diffuse lobe and its glossy lobe are nulled.

This seems in conflict with the descriptions of the dielectric layers, from which I understand all 3 dielectric cases share the same specular lobe.
Quoting the outline:

The interface (dielectric or metal) of this base layer produces the primary specular reflection lobe. The dielectric base represents either of three components, that can be statistically mixed:

I understand that to represent this we can choose from either:

  • one single gloss layer on top of all the dielectric components (translucent, subsurface and diffuse).
  • a separate gloss layer on top of each of the dielectric components.
  • omit the gloss layer from the diagram, and consider that each of the component produce their own specular lobe.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reading the spec, I see the diffuse slab is specified differently from the translucent and subsurface one, where the diffuse slab only has a diffuse BRDF, whereas the other two have a dielectric specular BRDF and a volume.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading