Add KHR_materials_scatter for discussion#2579
Open
MiiBond wants to merge 3 commits into
Open
Conversation
|
|
…nisotropy semantics - Add scatterFactor (default 0) and scatterTexture (alpha channel) properties to control scattering weight; default-off follows glTF extension convention - scatterTexture uses the alpha channel so it can share a texture with multiscatterColorTexture - In thin-walled mode, scatterFactor lerps between specular BTDF and scatter BSDF, and lerps the scattered color between baseColor and multiscatterColor - In volumetric mode, scatterFactor scales the effective multi-scatter albedo - Correct scatterAnisotropy thin-walled semantics: the parameter controls the hemisphere split (forward fraction = (1+g)/2, backward = (1-g)/2), not a bias on a pure BTDF; rename scatter_btdf -> scatter_bsdf throughout Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on some discussions in the glTF PBR group this morning, I've had Claude throw together this proposed extension.
The purpose is to simplify our current approach to supporting diffuse transmission and scattering and to bring it more into line with material models like OpenPBR and Standard Surface which don't support both volumetric materials and diffusely-transmitting surfaces at the same time.
This is one extension that replaces both
KHR_materials_volume_scatterandKHR_materials_diffuse_transmission:KHR_materials_volume_scatter.scatterStrengthproperty is used to scale the affect of the extension and defaults to 0.0 (i.e. "off").Some notes:
KHR_materials_transmissionextension. That's probably okay because the OpenPBR slabs both implement the volume coefficients (including scattering) leading to somewhat redundant behaviour. In our glTF proposal, there is a single way to define coefficients, surface transmission, etc.