-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Add new shading model to Filament for specularGlossiness. #1083
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,10 +55,11 @@ | |
# Material models | ||
|
||
Filament materials can use one of the following material models: | ||
- Lit (or standard) | ||
- Subsurface | ||
- Cloth | ||
- Unlit | ||
- `lit` (or standard) | ||
- `subsurface` | ||
- `cloth` | ||
- `unlit` | ||
- `specularGlossiness` (legacy) | ||
|
||
## Lit model | ||
|
||
|
@@ -522,6 +523,13 @@ | |
|
||
![Figure [materialUnlit]: The unlit model is used to render debug information](images/screenshot_unlit.jpg) | ||
|
||
## Specular glossiness | ||
|
||
This alternative lighting model exists to comply with legacy standards. | ||
|
||
Similar to cloth, it encompasses all the parameters previously defined for the standard | ||
lit mode except for _metallic_ and _reflectance_, and adds a _sheenColor_ parameter. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you update the
Except in a way that makes sense :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
|
||
# Material definitions | ||
|
||
A material definition is a text file that describes all the information required by a material: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of changing the shading model names to the programmatic versions here, you should update the
### shadingModel
section to addspecularGlossiness
to the list.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done