Aller au contenu

Message HrzProtocol.MaterialProperties

Defined in hrz/protocol/3d_model/material.proto.

Two materials can be displayed at once: the base and the overlay materials. The overlay material can be disabled, and its opacity changed. It is displayed on top of the base material. The feature color (for example the instanced or batch color) can be applied either between the base and overlay materials, or above everything if the apply_feature_color_to_overlay is set to true.

Fields

base_material: string

Name of the activate material defined in the materials field of the layer. If this name doesn’t map to a valid material, the model will be displayed with the default material defined in the source.

overlay_material: string

Same as the base material, but for the overlay material.

enable_overlay: bool
overlay_opacity: float

Range 0-1

apply_feature_color_to_overlay: bool
feature_color_blend_mode: HrzProtocol.BlendMode
feature_color_blend_strength: float

Range 0-1