MaterialStyle Constructor

Constructor in MaterialStyle

Declaration

public MaterialStyle(MaterialStyle.Preset preset, Color color = null, float metallic = 0F, float smoothness = 0F)

Description

Creates a new material style with the specified preset.

Parameters

presetThe preset enumeration value of the style.
colorThe color of the material style.
metallicThe metallic value of the material style.
smoothnessThe smoothness value of the material style.