Commit 6f8b18b
authored
Support Specular and Specular Color in Standard Surface to glTF PBR (AcademySoftwareFoundation#2623)
closes AcademySoftwareFoundation#2581
## Summary
This PR passthrough the specular weight and the specular color from standard surface to gltf_pbr.
This translation will not produce completely matching result, even if specular and specular_color control similar aspects in both the shading models, there are some fundamental differences. It will successfully translate the specular weight, so if you have a material with roughness 0, and specular 0, it will be a diffuse material (similar to roughness 1). But the difference will be in the specular_color, both for dielectric materials (non-metals) and conductors (metals).1 parent 4cc8155 commit 6f8b18b
1 file changed
Lines changed: 14 additions & 0 deletions
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
8 | 10 | | |
9 | 11 | | |
10 | 12 | | |
| |||
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| 32 | + | |
| 33 | + | |
30 | 34 | | |
31 | 35 | | |
32 | 36 | | |
| |||
203 | 207 | | |
204 | 208 | | |
205 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
206 | 218 | | |
207 | 219 | | |
208 | 220 | | |
| |||
236 | 248 | | |
237 | 249 | | |
238 | 250 | | |
| 251 | + | |
| 252 | + | |
239 | 253 | | |
240 | 254 | | |
241 | 255 | | |
| |||
0 commit comments