(tree)
| 124 | ) |
| 125 | |
| 126 | def tree_postprocessor(tree): |
| 127 | # FIXME: hardcode the material |
| 128 | tree["materials"][0]["pbrMetallicRoughness"]["baseColorFactor"] = [1.0, 1.0, 1.0, 1.0] |
| 129 | tree["materials"][0]["pbrMetallicRoughness"]["metallicFactor"] = 0.0 |
| 130 | tree["materials"][0]["pbrMetallicRoughness"]["roughnessFactor"] = 1.0 |
| 131 | tree["materials"][0]["doubleSided"] = True |
| 132 | |
| 133 | with open(fname, 'wb') as f: |
| 134 | mesh.export(file_obj=f, file_type='glb', tree_postprocessor=tree_postprocessor) |
nothing calls this directly
no outgoing calls
no test coverage detected