|
@@ -40,11 +40,11 @@ export class PBRClearCoatConfiguration {
|
|
*/
|
|
*/
|
|
private static readonly _DefaultIndexOfRefraction = 1.5;
|
|
private static readonly _DefaultIndexOfRefraction = 1.5;
|
|
|
|
|
|
- @serialize()
|
|
|
|
private _isEnabled = false;
|
|
private _isEnabled = false;
|
|
/**
|
|
/**
|
|
* Defines if the clear coat is enabled in the material.
|
|
* Defines if the clear coat is enabled in the material.
|
|
*/
|
|
*/
|
|
|
|
+ @serialize()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public isEnabled = false;
|
|
public isEnabled = false;
|
|
|
|
|
|
@@ -60,7 +60,6 @@ export class PBRClearCoatConfiguration {
|
|
@serialize()
|
|
@serialize()
|
|
public roughness: number = 0;
|
|
public roughness: number = 0;
|
|
|
|
|
|
- @serialize()
|
|
|
|
private _indexOfRefraction = PBRClearCoatConfiguration._DefaultIndexOfRefraction;
|
|
private _indexOfRefraction = PBRClearCoatConfiguration._DefaultIndexOfRefraction;
|
|
/**
|
|
/**
|
|
* Defines the index of refraction of the clear coat.
|
|
* Defines the index of refraction of the clear coat.
|
|
@@ -68,30 +67,31 @@ export class PBRClearCoatConfiguration {
|
|
* The default fits with a polyurethane material.
|
|
* The default fits with a polyurethane material.
|
|
* Changing the default value is more performance intensive.
|
|
* Changing the default value is more performance intensive.
|
|
*/
|
|
*/
|
|
|
|
+ @serialize()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public indexOfRefraction = PBRClearCoatConfiguration._DefaultIndexOfRefraction;
|
|
public indexOfRefraction = PBRClearCoatConfiguration._DefaultIndexOfRefraction;
|
|
|
|
|
|
- @serializeAsTexture()
|
|
|
|
private _texture: Nullable<BaseTexture> = null;
|
|
private _texture: Nullable<BaseTexture> = null;
|
|
/**
|
|
/**
|
|
* Stores the clear coat values in a texture.
|
|
* Stores the clear coat values in a texture.
|
|
*/
|
|
*/
|
|
|
|
+ @serializeAsTexture()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public texture: Nullable<BaseTexture> = null;
|
|
public texture: Nullable<BaseTexture> = null;
|
|
|
|
|
|
- @serializeAsTexture()
|
|
|
|
private _bumpTexture: Nullable<BaseTexture> = null;
|
|
private _bumpTexture: Nullable<BaseTexture> = null;
|
|
/**
|
|
/**
|
|
* Define the clear coat specific bump texture.
|
|
* Define the clear coat specific bump texture.
|
|
*/
|
|
*/
|
|
|
|
+ @serializeAsTexture()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public bumpTexture: Nullable<BaseTexture> = null;
|
|
public bumpTexture: Nullable<BaseTexture> = null;
|
|
|
|
|
|
- @serialize()
|
|
|
|
private _isTintEnabled = false;
|
|
private _isTintEnabled = false;
|
|
/**
|
|
/**
|
|
* Defines if the clear coat tint is enabled in the material.
|
|
* Defines if the clear coat tint is enabled in the material.
|
|
*/
|
|
*/
|
|
|
|
+ @serialize()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public isTintEnabled = false;
|
|
public isTintEnabled = false;
|
|
|
|
|
|
@@ -117,13 +117,13 @@ export class PBRClearCoatConfiguration {
|
|
@serialize()
|
|
@serialize()
|
|
public tintThickness: number = 1;
|
|
public tintThickness: number = 1;
|
|
|
|
|
|
- @serializeAsTexture()
|
|
|
|
private _tintTexture: Nullable<BaseTexture> = null;
|
|
private _tintTexture: Nullable<BaseTexture> = null;
|
|
/**
|
|
/**
|
|
* Stores the clear tint values in a texture.
|
|
* Stores the clear tint values in a texture.
|
|
* rgb is tint
|
|
* rgb is tint
|
|
* a is a thickness factor
|
|
* a is a thickness factor
|
|
*/
|
|
*/
|
|
|
|
+ @serializeAsTexture()
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
@expandToProperty("_markAllSubMeshesAsTexturesDirty")
|
|
public tintTexture: Nullable<BaseTexture> = null;
|
|
public tintTexture: Nullable<BaseTexture> = null;
|
|
|
|
|