Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialExpressionSubstrate.h |
| Include | #include "Materials/MaterialExpressionSubstrate.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialExpressions.cpp |
int32 CompileSubstrateBlendFunction
(
FMaterialCompiler * Compiler,
const int32 A,
const int32 B,
const int32 Alpha
)
Remarks
Compile a special blend function for Substrate when blending material attribute Index to a new code chunk
Parameters
| Name | Description |
|---|---|
| Compiler | The compiler to add code to |
| Foreground | Entry A, has a bigger impact when Alpha is close to 0 |
| Background | Entry B, has a bigger impact when Alpha is close to 1 |
| Alpha | Blend factor [0..1], when 0 |