Commit 96c5870
authored
Support Dispersion in Standard Surface to glTF PBR (#2636)
closes #2585
This PR adds `dispersion` input to `gltf_pbr` and a translation from `transmission_dispersion` in standard surface to glTFs equivalent.
> [!NOTE]
>Dispersion in this PR is only an input to **gltf_pbr**, it is not implemented in any render backends.
>This is similar how dispersion is treated in **OpenPBR** and **Standard surface**, as they are also missing implementations. For more info, check Issue: #2202 and PR: #2203.
The motivation to add this is to be able to bake dispersion inputs into gltf_pbr even if we can't render this in the MaterialX Viewer.1 parent 3edb750 commit 96c5870
2 files changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
234 | 236 | | |
235 | 237 | | |
236 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
237 | 252 | | |
238 | 253 | | |
239 | 254 | | |
| |||
275 | 290 | | |
276 | 291 | | |
277 | 292 | | |
| 293 | + | |
278 | 294 | | |
279 | 295 | | |
280 | 296 | | |
| |||
0 commit comments