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.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
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