Skip to content

Commit 502fee1

Browse files
authored
Add KHR_materials_dispersion export support (playcanvas#8274)
1 parent 9336a65 commit 502fee1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/extras/exporters/gltf-exporter.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,13 @@ class GltfExporter extends CoreExporter {
427427

428428
// === Material Extensions ===
429429

430+
// KHR_materials_dispersion
431+
if (mat.dispersion !== 0) {
432+
this.addExtension(json, output, 'KHR_materials_dispersion', {
433+
dispersion: mat.dispersion
434+
});
435+
}
436+
430437
// KHR_materials_emissive_strength
431438
if (mat.useLighting && mat.emissiveIntensity !== 1) {
432439
this.addExtension(json, output, 'KHR_materials_emissive_strength', {

0 commit comments

Comments
 (0)