Hi!
I wrote a custom shader that I want to assign to a material. I have followed the documentation/tutorial here: Custom Shaders | PlayCanvas Developer Site
which shows the following:
this.shader = new pc.Shader(gd, shaderDefinition);
this.material = new pc.Material();
this.material.shader = this.shader;
But the types in "playcanvas": "^2.7.7"
suggest that Material
has no shader
property. Is this expected?
I am on day one of trying out PlayCanvas, so I did not want to jump the gun and open an issue straight away.
Thanks!