Skip to content

Mojo3d pbrmaterial load

mojo3d:mojo3d.PbrMaterial.Load

Function Load:PbrMaterial( path:String,textureFlags:mojo.graphics.TextureFlags=(TextureFlags.WrapST|TextureFlags.FilterMipmap) )#

Loads a PbrMaterial from a 'file'.

A .pbr file is actually a directory containing a number of textures in png format. These textures are:

color.png (required) emissive.png metalness.png roughness.png occlusion.png normal.png