|
@@ -257,8 +257,12 @@ export class PBRMetallicRoughnessBlock extends NodeMaterialBlock {
|
|
aoBlock?.prepareDefines(mesh, nodeMaterial, defines);
|
|
aoBlock?.prepareDefines(mesh, nodeMaterial, defines);
|
|
|
|
|
|
// Reflectivity
|
|
// Reflectivity
|
|
|
|
+ const metalRoughTextBlock = this.metalRoughTexture.connectedPoint?.ownerBlock as Nullable<MetallicRoughnessTextureBlock>;
|
|
|
|
+
|
|
defines.setValue("REFLECTIVITY", this.metalRoughTexture.isConnected);
|
|
defines.setValue("REFLECTIVITY", this.metalRoughTexture.isConnected);
|
|
|
|
|
|
|
|
+ metalRoughTextBlock?.prepareDefines(mesh, nodeMaterial, defines);
|
|
|
|
+
|
|
if (!defines._areLightsDirty) {
|
|
if (!defines._areLightsDirty) {
|
|
return;
|
|
return;
|
|
}
|
|
}
|