|
@@ -108,6 +108,7 @@ export class PBRMetallicRoughnessMaterial extends PBRBaseSimpleMaterial {
|
|
|
serializationObject.anisotropy = this.anisotropy.serialize();
|
|
|
serializationObject.brdf = this.brdf.serialize();
|
|
|
serializationObject.sheen = this.sheen.serialize();
|
|
|
+ serializationObject.subSurface = this.subSurface.serialize();
|
|
|
|
|
|
return serializationObject;
|
|
|
}
|
|
@@ -129,6 +130,9 @@ export class PBRMetallicRoughnessMaterial extends PBRBaseSimpleMaterial {
|
|
|
if (source.sheen) {
|
|
|
material.sheen.parse(source.brdf);
|
|
|
}
|
|
|
+ if (source.subSurface) {
|
|
|
+ material.subSurface.parse(source.subSurface);
|
|
|
+ }
|
|
|
return material;
|
|
|
}
|
|
|
}
|