Click or drag to resize
Ab4d.SharpEngine logo

PhysicallyBasedMaterial(Color4, Single, Single, String) Constructor

Constructor

Namespace: Ab4d.SharpEngine.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public PhysicallyBasedMaterial(
	Color4 baseColor,
	float metalness = 1f,
	float roughness = 1f,
	string? name = null
)

Parameters

baseColor  Color4
baseColor
metalness  Single  (Optional)
optional metalness (default value is 1). When using metalness-roughness texture, then this value is multiplied by the texture
roughness  Single  (Optional)
optional roughness (default value is 1). When using metalness-roughness texture, then this value is multiplied by the texture
name  String  (Optional)
optional name of this material
See Also