pyrender
pyrender copied to clipboard
Materials examples
Hello,
I am looking for a simple example showing how can we specify material properties and render it.
Thanks in advance.
@shersoni610 me too, a simple example would be:
mat2 = pyrender.MetallicRoughnessMaterial(
metallicFactor=0.2,
alphaMode='OPAQUE',
baseColorFactor=(0.8, 0.3, 0.3, 1.0)
)
mesh = pyrender.Mesh.from_trimesh(tmesh, smooth=False, wireframe = False, material = mat2)