|
void
|
AddEditorLoadedMaterialResource
|
Adds an FMaterial to the global list.
|
|
void
|
AddReferencedObjects
|
|
|
bool
|
AllowNegativeEmissiveColor()
|
|
|
void
|
BackupEditorLoadedMaterialShadersToMemory
|
Backs up any FShaders in editor loaded materials to memory through serialization and clears FShader references.
|
|
void
|
BeginAllowCachingStaticParameterValues()
|
|
|
bool
|
CacheShaders
|
Caches the material shaders for this material on the given platform.
|
|
bool
|
CacheShaders
|
Caches the material shaders for the given static parameter set and platform.
|
|
void
|
CancelCompilation()
|
Cancels all outstanding compilation jobs for this material.
|
|
bool
|
CastsRayTracedShadows()
|
|
|
int32
|
CompilePropertyAndSetMaterialProperty
|
Entry point for compiling a specific material property. This must call SetMaterialProperty.
|
|
bool
|
ComputeFogPerPixel()
|
|
|
void
|
DiscardShaderMap()
|
Discards loaded shader maps if the application can't render
|
|
void
|
DumpDebugInfo()
|
|
|
void
|
EndAllowCachingStaticParameterValues()
|
|
|
void
|
FinishCompilation()
|
Blocks until compilation has completed. Returns immediately if a compilation is not outstanding.
|
|
void
|
GatherCustomOutputExpressions
|
Gather any UMaterialExpressionCustomOutput expressions they can be compiled in turn
|
|
void
|
GatherExpressionsForCustomInterpolators
|
Gather any UMaterialExpressionCustomOutput expressions in the material and referenced function calls
|
|
bool
|
GetAllowDevelopmentShaderCompile()
|
Returns true if this material is allowed to make development shaders via the global CVar CompileShadersForDevelopment.
|
|
FString
|
GetBaseMaterialPathName()
|
Useful for debugging.
|
|
int32
|
GetBlendableLocation()
|
|
|
bool
|
GetBlendableOutputAlpha()
|
|
|
enum EBlendM...
|
GetBlendMode()
|
|
|
bool
|
GetCastDynamicShadowAsMasked()
|
|
|
const TArray...
|
GetCompileErrors()
|
|
|
FString
|
GetDebugName()
|
|
|
uint32
|
GetDecalBlendMode()
|
|
|
void
|
GetDependentShaderAndVFTypes
|
Produces arrays of any shader and vertex factory type that this material is dependent on.
|
|
const TArray...
|
GetErrorExpressions()
|
|
|
const FStati...
|
GetFeatureLevel()
|
|
|
FString
|
GetFriendlyName()
|
|
|
FMaterialSha...
|
GetGameThreadShaderMap()
|
|
|
const FGuid ...
|
GetLegacyId()
|
|
|
bool
|
GetLoadedCookedShaderMapId()
|
|
|
uint32
|
GetMaterialDecalResponse()
|
|
|
EMaterialDom...
|
GetMaterialDomain()
|
|
|
bool
|
GetMaterialExpressionSource
|
Get user source code for the material, with a list of code snippets to highlight representing the code for each MaterialExpression
|
|
FGuid
|
GetMaterialId()
|
Gets the Guid that represents this material.
|
|
UMaterialInt...
|
GetMaterialInterface()
|
|
|
EMaterialSha...
|
GetMaterialShaderMapUsage()
|
Returns which shadermap this material is bound to.
|
|
FString
|
GetMaterialUsageDescription()
|
Returns a string that describes the material's usage for debugging purposes.
|
|
float
|
GetMaxDisplacement()
|
|
|
int32
|
GetNumCustomizedUVs()
|
|
|
float
|
GetOpacityMaskClipValue()
|
|
|
EMaterialQua...
|
GetQualityLevel()
|
|
|
TArrayView< ...
|
GetReferencedTextures()
|
|
|
float
|
GetRefractionDepthBiasValue()
|
|
|
enum ERefrac...
|
GetRefractionMode()
|
|
|
FMaterialSha...
|
GetRenderingThreadShaderMap()
|
|
|
uint8
|
GetRuntimeVirtualTextureOutputAttibuteMask_RenderThread()
|
Get the runtime virtual texture output attribute mask for the material.
|
|
TShaderRef< ...
|
GetShader
|
Finds the shader matching the template type and the passed in vertex factory, asserts if not found.
|
|
TShaderRef< ...
|
GetShader
|
|
|
void
|
GetShaderMapId
|
Material properties.
|
|
void
|
GetShaderMapIDsWithUnfinishedCompilation
|
Fills the passed array with IDs of shader maps unfinished compilation jobs.
|
|
const FMater...
|
GetShaderMapToUse()
|
Shared code needed for GetUniformScalarParameterExpressions, GetUniformVectorParameterExpressions, GetUniformCubeTextureExpressions..
|
|
EMaterialSha...
|
GetShaderMapUsage()
|
Gets the shader map usage of the material, which will be included in the DDC key.
|
|
FShaderPipel...
|
GetShaderPipeline
|
|
|
FMaterialSha...
|
GetShadingModels()
|
|
|
void
|
GetStaticParameterSet
|
|
|
uint32
|
GetStencilCompare()
|
|
|
uint32
|
GetStencilRefValue()
|
|
|
enum EMateri...
|
GetTessellationMode()
|
|
|
float
|
GetTranslucencyDirectionalLightingIntensity()
|
|
|
enum ETransl...
|
GetTranslucencyLightingMode()
|
|
|
float
|
GetTranslucentBackscatteringExponent()
|
|
|
FLinearColor
|
GetTranslucentMultipleScatteringExtinction()
|
|
|
float
|
GetTranslucentSelfShadowDensityScale()
|
|
|
float
|
GetTranslucentSelfShadowSecondDensityScale()
|
|
|
float
|
GetTranslucentSelfShadowSecondOpacity()
|
|
|
float
|
GetTranslucentShadowDensityScale()
|
|
|
float
|
GetTranslucentShadowStartOffset()
|
|
|
const TArray...
|
GetUniform2DArrayTextureExpressions()
|
|
|
const TArray...
|
GetUniform2DTextureExpressions()
|
|
|
const TArray...
|
GetUniformCubeTextureExpressions()
|
|
|
const FUnifo...
|
GetUniformExpressions()
|
Accessors.
|
|
const TArray...
|
GetUniformScalarParameterExpressions()
|
|
|
const TArray...
|
GetUniformTextureExpressions
|
|
|
const TArray...
|
GetUniformVectorParameterExpressions()
|
|
|
const TArray...
|
GetUniformVirtualTextureExpressions()
|
|
|
const TArray...
|
GetUniformVolumeTextureExpressions()
|
|
|
bool
|
GetUsesDynamicParameter()
|
|
|
bool
|
HasBaseColorConnected()
|
|
|
bool
|
HasEmissiveColorConnected()
|
|
|
bool
|
HasMaterialAttributesConnected()
|
|
|
bool
|
HasNormalConnected()
|
|
|
bool
|
HasPixelDepthOffsetConnected()
|
|
|
bool
|
HasRoughnessConnected()
|
|
|
bool
|
HasRuntimeVirtualTextureOutput()
|
|
|
bool
|
HasSpecularConnected()
|
|
|
bool
|
HasValidGameThreadShaderMap()
|
Checks if there is a valid GameThreadShaderMap, that is, the material can be rendered as intended.
|
|
bool
|
HasVertexPositionOffsetConnected()
|
|
|
bool
|
IsAdaptiveTessellationEnabled()
|
|
|
bool
|
IsCompilationFinished()
|
Checks if the compilation for this shader is finished
|
|
bool
|
IsCrackFreeDisplacementEnabled()
|
|
|
bool
|
IsDefaultMaterial()
|
|
|
bool
|
IsDeferredDecal()
|
|
|
bool
|
IsDistorted()
|
|
|
bool
|
IsDitheredLODTransition()
|
|
|
bool
|
IsDitherMasked()
|
|
|
bool
|
IsDualBlendingEnabled
|
|
|
bool
|
IsFullyRough()
|
|
|
bool
|
IsLightFunction()
|
|
|
bool
|
IsMasked()
|
|
|
bool
|
IsMobileSeparateTranslucencyEnabled()
|
|
|
bool
|
IsNonmetal()
|
|
|
bool
|
IsPersistent()
|
Should shaders compiled for this material be saved to disk?
|
|
bool
|
IsShadingModelFromMaterialExpression()
|
|
|
bool
|
IsSky()
|
|
|
bool
|
IsSpecialEngineMaterial()
|
|
|
bool
|
IsStencilTestEnabled()
|
|
|
bool
|
IsTangentSpaceNormal()
|
|
|
bool
|
IsTranslucencyAfterDOFEnabled()
|
|
|
bool
|
IsTranslucencyWritingCustomDepth()
|
|
|
bool
|
IsTranslucencyWritingVelocity()
|
|
|
bool
|
IsTwoSided()
|
|
|
bool
|
IsUIMaterial()
|
|
|
bool
|
IsUsedWithAPEXCloth()
|
|
|
bool
|
IsUsedWithBeamTrails()
|
|
|
bool
|
IsUsedWithEditorCompositing()
|
|
|
bool
|
IsUsedWithGeometryCache()
|
|
|
bool
|
IsUsedWithGeometryCollections()
|
|
|
bool
|
IsUsedWithHairStrands()
|
|
|
bool
|
IsUsedWithInstancedStaticMeshes()
|
|
|
bool
|
IsUsedWithLandscape()
|
|
|
bool
|
IsUsedWithLidarPointCloud()
|
|
|
bool
|
IsUsedWithMeshParticles()
|
|
|
bool
|
IsUsedWithMorphTargets()
|
|
|
bool
|
IsUsedWithNiagaraMeshParticles()
|
|
|
bool
|
IsUsedWithNiagaraRibbons()
|
|
|
bool
|
IsUsedWithNiagaraSprites()
|
|
|
bool
|
IsUsedWithParticleSprites()
|
|
|
bool
|
IsUsedWithParticleSystem()
|
|
|
bool
|
IsUsedWithSkeletalMesh()
|
|
|
bool
|
IsUsedWithSplineMeshes()
|
|
|
bool
|
IsUsedWithStaticLighting()
|
|
|
bool
|
IsUsedWithUI()
|
|
|
bool
|
IsUsedWithWater()
|
|
|
bool
|
IsUsingFullPrecision()
|
|
|
bool
|
IsUsingHQForwardReflections()
|
|
|
bool
|
IsUsingPlanarForwardReflections()
|
|
|
bool
|
IsUsingPreintegratedGFForSimpleIBL()
|
|
|
bool
|
IsVolumetricPrimitive()
|
|
|
bool
|
IsWireframe()
|
|
|
void
|
LegacySerialize
|
Serializes the material.
|
|
bool
|
MaterialMayModifyMeshPosition()
|
Note: This function is only intended for use in deciding whether or not shader permutations are required before material translation occurs.
|
|
bool
|
MaterialModifiesMeshPosition_GameThread()
|
|
|
bool
|
MaterialModifiesMeshPosition_RenderThread()
|
Does the material modify the mesh position.
|
|
bool
|
MaterialUsesDistanceCullFade_GameThread()
|
Does the material use a distance cull fade.
|
|
bool
|
MaterialUsesPixelDepthOffset()
|
Does the material use a pixel depth offset.
|
|
bool
|
MaterialUsesSceneDepthLookup_GameThread()
|
|
|
bool
|
MaterialUsesSceneDepthLookup_RenderThread()
|
Does the material use a SceneDepth lookup.
|
|
bool
|
NeedsGBuffer()
|
|
|
bool
|
NeedsSceneTextures()
|
|
|
void
|
NotifyCompilationFinished()
|
Called when compilation of an FMaterial finishes, after the GameThreadShaderMap is set and the render command to set the RenderThreadShaderMap is queued
|
|
void
|
RegisterInlineShaderMap
( bool bLoadedByCookedMaterial )
|
Serializes the shader map inline in this material, including any shader dependencies.
|
|
void
|
ReleaseShaderMap()
|
Releases this material's shader map.
|
|
void
|
RemoveOutstandingCompileId
( const int32 OldOutstandingCompileSh... )
|
|
|
bool
|
RequiresSceneColorCopy_GameThread()
|
|
|
bool
|
RequiresSceneColorCopy_RenderThread()
|
|
|
bool
|
RequiresSynchronousCompilation()
|
|
|
void
|
RestoreEditorLoadedMaterialShadersFromMemory
|
Recreates FShaders in editor loaded materials from the passed in memory, handling shader key changes.
|
|
void
|
SaveShaderStableKeys
|
|
|
void
|
SerializeInlineShaderMap
|
Serializes the shader map inline in this material, including any shader dependencies.
|
|
void
|
SetCompileErrors
|
|
|
void
|
SetGameThreadShaderMap
|
|
|
void
|
SetInlineShaderMap
|
|
|
void
|
SetQualityLevelProperties
|
|
|
void
|
SetRenderingThreadShaderMap
|
Note: SetGameThreadShaderMap must also be called with the same value, but from the game thread.
|
|
void
|
SetupExtaCompilationSettings
|
Call during shader compilation jobs setup to fill additional settings that may be required by classes who inherit from this
|
|
bool
|
ShouldApplyFogging()
|
|
|
bool
|
ShouldBlockGI()
|
|
|
bool
|
ShouldCache
|
Should the shader for this material with the given platform, shader type and vertex factory type combination be compiled
|
|
bool
|
ShouldCachePipeline
|
|
|
bool
|
ShouldCastDynamicShadows()
|
Returns whether this material should be considered for casting dynamic shadows.
|
|
bool
|
ShouldDisableDepthTest()
|
|
|
bool
|
ShouldDoContactShadows()
|
|
|
bool
|
ShouldDoSSR()
|
|
|
bool
|
ShouldEnableResponsiveAA()
|
|
|
bool
|
ShouldGenerateSphericalParticleNormals()
|
|
|
bool
|
ShouldInjectEmissiveIntoLPV()
|
|
|
bool
|
ShouldWriteOnlyAlpha()
|
|
|
void
|
UpdateEditorLoadedMaterialResources
|
Recompiles any materials in the EditorLoadedMaterialResources list if they are not complete.
|
|
bool
|
UseLmDirectionality()
|
|
|
bool
|
UseNormalCurvatureToRoughness()
|
|
|
bool
|
UsesCustomDepthStencil_GameThread()
|
Does the material use CustomDepth or CustomStencil lookup
|
|
bool
|
UsesEyeAdaptation()
|
|
|
bool
|
UsesGlobalDistanceField_GameThread()
|
|
|
bool
|
UsesWorldPositionOffset_GameThread()
|
|
|
bool
|
WritesEveryPixel
|
Helper function to look at both IsMasked and IsDitheredLODTransition to determine if it writes every pixel
|