Flat shading a model

I converted an STL to MDL format. Once I import the model, how do I render with flat shading instead of the smoothed shading?

Use AssetImporter with -h switch? Haven’t tested it…

AssetImporter model Path/To/Stl MyMDL.mdl -h

More generally, you can get the flat shaded effect by duplicating the vertices of each triangle (i.e. index buffer and vertex buffer are parallel) OR messing around with shaders.

1 Like

You could use Blender to split the edges and export to MDL using the reattiva plugin.

And welcome to the forums! :slight_smile:

-h worked perfectly. I did not want to mess around with shaders.