|
@@ -75,43 +75,43 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
|
|
|
this._environmentBRDFTexture = BRDFTextureTools.GetEnvironmentBRDFTexture(Engine.LastCreatedScene!);
|
|
|
}
|
|
|
|
|
|
- @editableInPropertyPage("Alpha from albedo", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Alpha from albedo", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "update": true }})
|
|
|
public useAlphaFromAlbedoTexture: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Alpha Testing", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Alpha Testing", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "update": true }})
|
|
|
public useAlphaTest: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Alpha CutOff", PropertyTypeForEdition.Float, "TRANSPARENCY", { min: 0, max: 1, "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Alpha CutOff", PropertyTypeForEdition.Float, "TRANSPARENCY", { min: 0, max: 1, "notifiers": { "update": true }})
|
|
|
public alphaTestCutoff: number = 0.4;
|
|
|
|
|
|
- @editableInPropertyPage("Alpha blending", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Alpha blending", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "update": true }})
|
|
|
public useAlphaBlending: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Get alpha from opacity texture RGB", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Get alpha from opacity texture RGB", PropertyTypeForEdition.Boolean, "TRANSPARENCY", { "notifiers": { "update": true }})
|
|
|
public opacityRGB: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Radiance over alpha", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Radiance over alpha", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "update": true }})
|
|
|
public useRadianceOverAlpha: boolean = true;
|
|
|
|
|
|
- @editableInPropertyPage("Specular over alpha", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Specular over alpha", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "update": true }})
|
|
|
public useSpecularOverAlpha: boolean = true;
|
|
|
|
|
|
- @editableInPropertyPage("Specular anti-aliasing", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Specular anti-aliasing", PropertyTypeForEdition.Boolean, "RENDERING", { "notifiers": { "update": true }})
|
|
|
public enableSpecularAntiAliasing: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Energy Conservation", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Energy Conservation", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "update": true }})
|
|
|
public useEnergyConservation: boolean = true;
|
|
|
|
|
|
- @editableInPropertyPage("Radiance occlusion", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Radiance occlusion", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "update": true }})
|
|
|
public useRadianceOcclusion: boolean = true;
|
|
|
|
|
|
- @editableInPropertyPage("Horizon occlusion", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Horizon occlusion", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "update": true }})
|
|
|
public useHorizonOcclusion: boolean = true;
|
|
|
|
|
|
- @editableInPropertyPage("Unlit", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Unlit", PropertyTypeForEdition.Boolean, "ADVANCED", { "notifiers": { "update": true }})
|
|
|
public unlit: boolean = false;
|
|
|
|
|
|
- @editableInPropertyPage("Debug mode", PropertyTypeForEdition.List, "DEBUG", { "options": [
|
|
|
+ @editableInPropertyPage("Debug mode", PropertyTypeForEdition.List, "DEBUG", { "notifiers": { "update": true }, "options": [
|
|
|
{ label: "None", value: 0 },
|
|
|
// Geometry
|
|
|
{ label: "Normalized position", value: 1 },
|
|
@@ -175,10 +175,10 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
|
|
|
]})
|
|
|
public debugMode = 0;
|
|
|
|
|
|
- @editableInPropertyPage("Split position", PropertyTypeForEdition.Float, "DEBUG", { min: -1, max: 1, "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Split position", PropertyTypeForEdition.Float, "DEBUG", { min: -1, max: 1, "notifiers": { "update": true }})
|
|
|
public debugLimit = 0;
|
|
|
|
|
|
- @editableInPropertyPage("Output factor", PropertyTypeForEdition.Float, "DEBUG", { min: 0, max: 5, "notifiers": { "rebuild": false }})
|
|
|
+ @editableInPropertyPage("Output factor", PropertyTypeForEdition.Float, "DEBUG", { min: 0, max: 5, "notifiers": { "update": true }})
|
|
|
public debugFactor = 1;
|
|
|
|
|
|
/**
|