Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Materials
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UMaterialExpression
- UMaterialExpressionSparseVolumeTextureBase
- UMaterialExpressionSparseVolumeTextureSample
- UMaterialExpressionSparseVolumeTextureSampleParameter
- UMaterialExpressionSparseVolumeTextureObjectParameter
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/Materials/MaterialExpressionSparseVolumeTextureSample.h |
| Include | #include "Materials/MaterialExpressionSparseVolumeTextureSample.h" |
Syntax
UCLASS (CollapseCategories, HideCategories=Object, MinimalAPI)
class UMaterialExpressionSparseVolumeTextureSample : public UMaterialExpressionSparseVolumeTextureBase
Remarks
Material expression for sampling from a runtime virtual texture.
Variables
| Type | Name | Description | |
|---|---|---|---|
| int32 | ConstMipValue | Only used if MipValue is not hooked up | |
| FExpressionInput | Coordinates | 3D texture coordinate used to sample the sparse volume texture. | |
| FExpressionInput | CoordinatesDX | Enabled only if MipValueMode == TMVM_Derivative | |
| FExpressionInput | CoordinatesDY | Enabled only if MipValueMode == TMVM_Derivative | |
| FExpressionInput | MipValue | Meaning depends on MipValueMode, a single unit is one mip level | |
| TEnumAsByte< ETextureMipValueMode > | MipValueMode | Defines how the MipValue property is applied to the texture lookup | |
| TEnumAsByte< ESamplerSourceMode > | SamplerSource | Controls where the sampler for this texture lookup will come from. | |
| FExpressionInput | TextureObject |
Constructors
| Type | Name | Description | |
|---|---|---|---|
UMaterialExpressionSparseVolumeTextureSample
(
const FObjectInitializer& ObjectInitializer |
Overridden from UMaterialExpression
| Type | Name | Description | |
|---|---|---|---|
| int32 | Compile
(
FMaterialCompiler* Compiler, |
Create the new shader code chunk needed for the Abs expression | |
| void | GetCaption
(
TArray< FString >& OutCaptions |
Returns the text to display on the material expression (in the material editor). | |
| FExpressionInput * | Returns the input at index InputIndex if valid, nullptr otherwise. | ||
| FName | GetInputName
(
int32 InputIndex |
||
| TArrayView< FExpressionInput * > | |||
| uint32 | GetInputType
(
int32 InputIndex |
||
| uint32 | GetOutputType
(
int32 OutputIndex |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditChange
(
const FProperty* InProperty |
Called by the editor to query whether a property of this object is allowed to be modified. | |
| void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally | |
| void | PostLoad () |
Do any object-specific cleanup required immediately after loading an object. |