Click or drag to resize
Ab4d.SharpEngine logo

PhysicallyBasedMaterialCreateMetalnessRoughnessImage Method

CreateMetalnessRoughnessImage creates a new RawImageData with both metalness and roughness data stored in the same image (metalness values are stored in the blue channel and roughness values are stored in the green channel). This is needed for PhysicallyBasedMaterial to work correctly.

Namespace: Ab4d.SharpEngine.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public static RawImageData CreateMetalnessRoughnessImage(
	RawImageData metalnessImage,
	RawImageData roughnessImage
)

Parameters

metalnessImage  RawImageData
RawImageData
roughnessImage  RawImageData
RawImageData

Return Value

RawImageData
RawImageData with both metalness and roughness data stored in the same image
See Also