pg2b3dm icon indicating copy to clipboard operation
pg2b3dm copied to clipboard

Option --shaderscolumn deprecated

Open bertt opened this issue 1 month ago • 1 comments

Notice: Option --shaderscolumn is deprecated and will be removed in a upcoming release (breaking change)

With option shaderscolumn it's possible to define the shader per triangle in the database, using a predefined JSON format. See https://github.com/Geodan/pg2b3dm/blob/master/styling.md

Although a very powerful mechanism, reasons for deprecation are:

  • function is not used much;

  • function is complex and slows down new developments;

  • function does not work when triangulation is performed by pg2b3dm (for example with lines or non triangulated geometries)

Alternative options are:

  • Set styling options for the complete tileset --default_color, --default_metallic_roughness;

  • Use client side styling, see https://github.com/Geodan/pg2b3dm/blob/master/styling.md#client-side-styling.

bertt avatar Jun 20 '24 12:06 bertt