Skip to content

Commit

Permalink
Merge pull request #14576 from BabylonJS/Popov72-patch-2
Browse files Browse the repository at this point in the history
PBR custom materials: Fix default shader name
  • Loading branch information
sebavan committed Dec 4, 2023
2 parents 408f35b + 9b5d8ba commit d01337f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/materials/src/custom/pbrCustomMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ export class PBRCustomMaterial extends PBRMaterial {
this.FragmentShader = this.FragmentShader.replace(/#include<pbrBlockFinalColorComposition>/g, Effect.IncludesShadersStore["pbrBlockFinalColorComposition"]);

PBRCustomMaterial.ShaderIndexer++;
this._createdShaderName = "custom_" + PBRCustomMaterial.ShaderIndexer;
this._createdShaderName = "custompbr_" + PBRCustomMaterial.ShaderIndexer;
}

protected _afterBind(mesh?: Mesh, effect: Nullable<Effect> = null): void {
Expand Down

0 comments on commit d01337f

Please sign in to comment.