Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterialInstanceDynamic
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialInstanceDynamic.h |
Include | #include "Materials/MaterialInstanceDynamic.h" |
Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstanceDynamic.cpp |
void K2_InterpolateMaterialInstanceParams
&40;
UMaterialInstance &42; SourceA,
UMaterialInstance &42; SourceB,
float Alpha
&41;
Remarks
Interpolates the scalar and vector parameters of this material instance based on two other material instances, and an alpha blending factor The output is the object itself (this). Supports the case SourceA==this || SourceB==this Both material have to be from the same base material
Parameters
Name | Description |
---|---|
SourceA | value that is used for Alpha=0, silently ignores the case if 0 |
SourceB | value that is used for Alpha=1, silently ignores the case if 0 |
Alpha | usually in the range 0..1, values outside the range extrapolate |