Hello, all,
Can you provide an example on how to create physical material programmatically?
From API docs for Phong material:
var material = new pc.PhongMaterial();
And for Physical material ??
Thanks.
Radek
Hello, all,
Can you provide an example on how to create physical material programmatically?
From API docs for Phong material:
var material = new pc.PhongMaterial();
And for Physical material ??
Thanks.
Radek
It’s the same material class but with the shadingModel
changed:
var material = new pc.PhongMaterial();
material.shadingModel = pc.SPECULAR_BLINN;
Yes, we need to change this
Thank you for quick reply Dave.