Skip to content

Commit f125563

Browse files
authored
1 parent 5018d8b commit f125563

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

packages/dev/core/src/Materials/PBR/pbrSubSurfaceConfiguration.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
7979
* Default value used for legacyTranslucency.
8080
*
8181
* This property only exists for backward compatibility reasons.
82-
* Set it to true if your rendering in 8.0+ is different from that in 7 when you use sub-surface transluceny. Default is false.
82+
* Set it to true if your rendering in 8.0+ is different from that in 7 when you use sub-surface translucency. Default is false.
8383
*/
8484
public static DEFAULT_LEGACY_TRANSLUCENCY = false;
8585

@@ -362,10 +362,22 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
362362

363363
/**
364364
* This property only exists for backward compatibility reasons.
365-
* Set it to true if your rendering in 8.0+ is different from that in 7 when you use sub-surface transluceny. Default is false.
365+
* Set it to true if your rendering in 8.0+ is different from that in 7 when you use sub-surface translucency. Default is false.
366366
*/
367367
@serialize()
368-
public legacyTransluceny = PBRSubSurfaceConfiguration.DEFAULT_LEGACY_TRANSLUCENCY;
368+
public legacyTranslucency = PBRSubSurfaceConfiguration.DEFAULT_LEGACY_TRANSLUCENCY;
369+
370+
/**
371+
* Keeping for backward compatibility... Should not be used anymore. It has been replaced by
372+
* the property with the correct spelling.
373+
* @see legacyTranslucency
374+
*/
375+
public get legacyTransluceny(): boolean {
376+
return this.legacyTranslucency;
377+
}
378+
public set legacyTransluceny(value: boolean) {
379+
this.legacyTranslucency = value;
380+
}
369381

370382
private _scene: Scene;
371383

@@ -481,7 +493,7 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
481493
defines.SS_DISPERSION = this._isDispersionEnabled;
482494
defines.SS_TRANSLUCENCY = this._isTranslucencyEnabled;
483495
defines.SS_TRANSLUCENCY_USE_INTENSITY_FROM_THICKNESS = false;
484-
defines.SS_TRANSLUCENCY_LEGACY = this.legacyTransluceny;
496+
defines.SS_TRANSLUCENCY_LEGACY = this.legacyTranslucency;
485497
defines.SS_SCATTERING = this._isScatteringEnabled;
486498
defines.SS_THICKNESSANDMASK_TEXTURE = false;
487499
defines.SS_REFRACTIONINTENSITY_TEXTURE = false;

0 commit comments

Comments
 (0)