@@ -79,7 +79,7 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
79
79
* Default value used for legacyTranslucency.
80
80
*
81
81
* 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.
83
83
*/
84
84
public static DEFAULT_LEGACY_TRANSLUCENCY = false ;
85
85
@@ -362,10 +362,22 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
362
362
363
363
/**
364
364
* 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.
366
366
*/
367
367
@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
+ }
369
381
370
382
private _scene : Scene ;
371
383
@@ -481,7 +493,7 @@ export class PBRSubSurfaceConfiguration extends MaterialPluginBase {
481
493
defines . SS_DISPERSION = this . _isDispersionEnabled ;
482
494
defines . SS_TRANSLUCENCY = this . _isTranslucencyEnabled ;
483
495
defines . SS_TRANSLUCENCY_USE_INTENSITY_FROM_THICKNESS = false ;
484
- defines . SS_TRANSLUCENCY_LEGACY = this . legacyTransluceny ;
496
+ defines . SS_TRANSLUCENCY_LEGACY = this . legacyTranslucency ;
485
497
defines . SS_SCATTERING = this . _isScatteringEnabled ;
486
498
defines . SS_THICKNESSANDMASK_TEXTURE = false ;
487
499
defines . SS_REFRACTIONINTENSITY_TEXTURE = false ;
0 commit comments