MCPcopy Create free account
hub / github.com/PDAL/PDAL / addArgs

Method addArgs

io/GltfWriter.cpp:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void GltfWriter::addArgs(ProgramArgs& args)
75{
76 args.add("metallic", "Metallic factor [0-1]", m_metallic);
77 args.add("roughness", "Roughness factor [0-1]", m_roughness);
78 args.add("red", "Base red factor [0-1]", m_red);
79 args.add("green", "Base green factor [0-1]", m_green);
80 args.add("blue", "Base blue factor [0-1]", m_blue);
81 args.add("alpha", "Alpha factor [0-1]", m_alpha, 1.0);
82 args.add("double_sided", "Whether the material should be applied to "
83 "both sides of the faces.", m_doubleSided);
84 args.add("colors", "Write color data for each vertex. Note that most renderers will "
85 "interpolate the color of each vertex across a face, so this may look odd.",
86 m_colorVertices);
87 args.add("normals", "Write vertex normals", m_writeNormals);
88}
89
90
91void GltfWriter::prepared(PointTableRef table)

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected