pbrSpecularGlossiness sample?
See original GitHub issueHi, is there maybe an example available how to use pbrSpecularGlossiness shaders? For example to create ‘best practice’ json https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_pbrSpecularGlossiness#best-practices
{
"materials": [
{
"name": "gold",
"pbrMetallicRoughness": {
"baseColorfactor": [ 1.0, 0.766, 0.336, 1.0 ],
"roughnessFactor": 0.1
},
"extensions": {
"KHR_materials_pbrSpecularGlossiness": {
"diffuseFactor": [ 0.0, 0.0, 0.0, 1.0 ],
"specularFactor": [ 1.0, 0.766, 0.336 ],
"glossinessFactor": 0.9
}
}
}
]
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (8 by maintainers)
Top Results From Across the Web
The PBR Guide - Part 2
Just as with metal/roughness, the specular/glossiness workflow is defined through a set of maps which are fed as textures to a sampler in...
Read more >KHR_materials_pbrSpecularGlo...
The PBR specular-glossiness materials are defined by adding the KHR_materials_pbrSpecularGlossiness extension to any glTF material. For example ...
Read more >Specular-Glossiness Materials - HitFilm Legacy - 2021.2
The Specular-Glossiness workflow is system of physically-based rendering (PBR) which defines materials using a base color and their specular and reflective.
Read more >Is it possible to create specular glossiness workflow PBR ...
I'm trying to replicate fully GLTF compatible materials in NodeMaterial, including not just the base gltf spec but also the most common GLTF ......
Read more >DONTNOD specular and glossiness chart - Sébastien Lagarde
The chart is divide in two parts. The upper is for specular color of material, the second is used for glossiness (roughness on...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If you’re using the Toolkit’s MaterialBuilder framework, you can set a fallback material.
So let’s say you want to create a material that has a main “specular glossiness” material, and a “metallic roughness” fallback material that will be used if specular glossiness is not available.
And then you use the “primary” material with MeshBuilders.
There’s also a unit test here.
I’ve commited some improvements and API changes… the whole MaterialBuilder framework was more buggy than I expected, so I had to rewrite some code. I’m still not 100% confident, so I’ll keep writing more unit tests for a few days before uploading new packages.
In the meantime, if you could use the latest changes directly, it could help me identify any other bug or use case.