My mesh is not ideal. But I do not need any smoothness on it or effects. But it renders with black artifacts. It goes away when I toggle in inspector Material > Textures > Albedo wrench icon “Render as main texture”, And I like that.
How can I apply this on mesh load to my material??
My loaded mesh does have PBRMaterial and that makes it to have all shadows and those black spots.
Changing it to StandardMaterial and disabling lightning and setting emissiveTexture as my texture sorted me out
var debugMaterial = new StandardMaterial('debugMaterial', scene);
debugMaterial.disableLighting = true;
debugMaterial.emissiveTexture = m.albedoTexture;
that is doing the trick for me thanks.
2 more questions if I can.
Is emissiveTexture here not using more performance? I just will like to have mesh with texture and no shading nothing but I will also like to get the most performance out of it. Is there a setting that I need to set up to squeeze as much as possible performance-wise?
Is StandardMaterial more performant efficient then PBRMaterial in this case?