pyrender icon indicating copy to clipboard operation
pyrender copied to clipboard

Materials examples

Open shersoni610 opened this issue 4 years ago • 1 comments

Hello,

I am looking for a simple example showing how can we specify material properties and render it.

Thanks in advance.

shersoni610 avatar May 22 '20 00:05 shersoni610

@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)

johanjohan avatar Aug 12 '22 21:08 johanjohan