pCon.planner Plugin SDK  Version 8.8.1
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Events
Static Public Member Functions | List of all members
X3g::Plugin::MaterialUtility Class Reference

Provides helper functions for material handling. More...

Static Public Member Functions

static Color ApplyAlbedoToBaseColor (Color pBaseColor, float pAlbedo)
 Adopts luminance of base color to the given albedo value. More...
 
static ImageApplyAlbedoToBaseColor (Image^ pBaseColorTexture, float pAlbedo)
 Adopts average luminance of base color texture to the given albedo value. More...
 

Detailed Description

Provides helper functions for material handling.

Member Function Documentation

Color X3g::Plugin::MaterialUtility::ApplyAlbedoToBaseColor ( Color  pBaseColor,
float  pAlbedo 
)
static

Adopts luminance of base color to the given albedo value.

The given base color has to be in srgb. Returned color is also in srgb.

Image X3g::Plugin::MaterialUtility::ApplyAlbedoToBaseColor ( Image pBaseColorTexture,
float  pAlbedo 
)
static

Adopts average luminance of base color texture to the given albedo value.

The given base color texture has to be in srgb. Returned texture image is also in srgb.