|
@@ -776,6 +776,14 @@ export abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Gets the name of the material shader.
|
|
|
+ * @returns - string that specifies the shader program of the material.
|
|
|
+ */
|
|
|
+ public getShaderName(): string {
|
|
|
+ return "pbr";
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Enabled the use of logarithmic depth buffers, which is good for wide depth buffers.
|
|
|
*/
|
|
|
@serialize()
|
|
@@ -1220,7 +1228,7 @@ export abstract class PBRBaseMaterial extends PushMaterial {
|
|
|
});
|
|
|
|
|
|
var join = defines.toString();
|
|
|
- return engine.createEffect("pbr", <EffectCreationOptions>{
|
|
|
+ return engine.createEffect(this.getShaderName(), <EffectCreationOptions>{
|
|
|
attributes: attribs,
|
|
|
uniformsNames: uniforms,
|
|
|
uniformBuffersNames: uniformBuffers,
|