Skip to content

MaterialInterface

Class in Engine · Engine.MaterialInterface · abstract, native

Object › Surface › MaterialInterface

Subclasses: Material, MaterialInstance

Using it from Lua
h7.find_all("MaterialInterface")            -- live instances
h7.find_class("Engine.MaterialInterface")   -- the class
h7.hook("Engine.MaterialInterface.GetFontParameterValue", fn)

Enums

EMaterialUsage

MATUSAGE_SkeletalMesh = 0, MATUSAGE_FracturedMeshes = 1, MATUSAGE_ParticleSprites = 2, MATUSAGE_BeamTrails = 3, MATUSAGE_ParticleSubUV = 4, MATUSAGE_SpeedTree = 5, MATUSAGE_StaticLighting = 6, MATUSAGE_GammaCorrection = 7, MATUSAGE_LensFlare = 8, MATUSAGE_InstancedMeshParticles = 9, MATUSAGE_FluidSurface = 10, MATUSAGE_Decals = 11, MATUSAGE_MaterialEffect = 12, MATUSAGE_MorphTargets = 13, MATUSAGE_FogVolumes = 14, MATUSAGE_RadialBlur = 15, MATUSAGE_InstancedMeshes = 16, MATUSAGE_SplineMesh = 17, MATUSAGE_ScreenDoorFade = 18, MATUSAGE_APEXMesh = 19, MATUSAGE_Terrain = 20, MATUSAGE_Landscape = 21, MATUSAGE_MobileLandscape = 22

Structs

LightmassMaterialInterfaceSettings

FieldType
bCastShadowAsMaskedbool
EmissiveBoostfloat
DiffuseBoostfloat
SpecularBoostfloat
ExportResolutionScalefloat
DistanceFieldPenumbraScalefloat
bOverrideCastShadowAsMaskedbool
bOverrideEmissiveBoostbool
bOverrideDiffuseBoostbool
bOverrideSpecularBoostbool
bOverrideExportResolutionScalebool
bOverrideDistanceFieldPenumbraScalebool
Defaults
bCastShadowAsMasked=false
EmissiveBoost=1.0
DiffuseBoost=1.0
SpecularBoost=1.0
ExportResolutionScale=1.0
DistanceFieldPenumbraScale=1.0

Properties

NameTypeNotes
bAutoFlattenMobilebool
bAutoFlattenMobileNormalTexturebool
bBaseTextureTransformedbool
bDetailTextureTransformedbool
bEmissiveTextureTransformedbool
bGenerateSubUVbool
bHasQualitySwitchboolconst
bLockColorBlendingbool
bMaskTextureTransformedbool
bMobileAllowFogbool
bMobileEnableBounceLightbool
bMobileRimFadingbool
bNormalTextureTransformedbool
bUseMobileBumpOffsetbool
bUseMobileDetailNormalbool
bUseMobileLandscapeMonochromeLayerBlendingbool
bUseMobilePixelSpecularbool
bUseMobileSpecularbool
bUseMobileUniformColorMultiplybool
bUseMobileVertexColorMultiplybool
bUseMobileVertexSpecularbool
bUseMobileWaveVertexMovementbool
DefaultUniformColorLinearColor
FixedOffsetXfloat
FixedOffsetYfloat
FixedScaleXfloat
FixedScaleYfloat
FlattenBackgroundColorcolor
FlattenedTexturetexture
LightingGuidGuidconst, private
LightmassSettingsLightmassMaterialInterfaceSettingsprotected
MobileAlphaValueSourceEMobileAlphaValueSource
MobileAmbientOcclusionSourceEMobileAmbientOcclusionSource
MobileBaseTexturetexture
MobileBaseTextureTexCoordsSourceEMobileTexCoordsSource
MobileBounceLightBrightnessfloat
MobileBounceLightColorcolor
MobileBounceLightDirectionvector
MobileBumpOffsetHeightRatiofloat
MobileBumpOffsetReferencePlanefloat
MobileColorMultiplySourceEMobileColorMultiplySource
MobileDefaultUniformColorLinearColor
MobileDetailTexturetexture
MobileDetailTexture2texture
MobileDetailTexture3texture
MobileDetailTextureTexCoordsSourceEMobileTexCoordsSource
MobileDirectionalLightBrightnessfloat
MobileDirectionalLightColorcolor
MobileDirectionalLightDirectionvector
MobileEmissiveColorLinearColor
MobileEmissiveColorSourceEMobileEmissiveColorSource
MobileEmissiveMaskSourceEMobileValueSource
MobileEmissiveTexturetexture
MobileEnvironmentAmountfloat
MobileEnvironmentBlendModeEMobileEnvironmentBlendMode
MobileEnvironmentColorLinearColor
MobileEnvironmentFresnelAmountfloat
MobileEnvironmentFresnelExponentfloat
MobileEnvironmentMaskSourceEMobileValueSource
MobileEnvironmentTexturetexture
MobileFixedOffsetXfloat
MobileFixedOffsetYfloat
MobileFixedScaleXfloat
MobileFixedScaleYfloat
MobileLandscapeLayerNamesname[4]
MobileLandscapeMonochomeLayerColorscolor[4]
MobileMaskTexturetexture
MobileMaskTextureTexCoordsSourceEMobileTexCoordsSource
MobileMaxVertexMovementAmplitudefloat
MobileNormalTexturetexture
MobileOpacityMultiplierfloat
MobilePannerSpeedXfloat
MobilePannerSpeedYfloat
MobileRimLightingColorLinearColor
MobileRimLightingExponentfloat
MobileRimLightingMaskSourceEMobileValueSource
MobileRimLightingStrengthfloat
MobileRotateSpeedfloat
MobileSineScaleFrequencyMultiplerfloat
MobileSineScaleXfloat
MobileSineScaleYfloat
MobileSkyLightBrightnessfloat
MobileSkyLightColorcolor
MobileSpecularColorLinearColor
MobileSpecularMaskEMobileSpecularMask
MobileSpecularPowerfloat
MobileSwayFrequencyMultiplierfloat
MobileSwayMaxAnglefloat
MobileTangentVertexFrequencyMultiplierfloat
MobileTextureBlendFactorSourceEMobileTextureBlendFactorSource
MobileTransformCenterXfloat
MobileTransformCenterYfloat
MobileVerticalFrequencyMultiplierfloat
PannerSpeedXfloat
PannerSpeedYfloat
ParentRefFenceRenderCommandFence_Mirrorconst, transient, native
PreviewMeshstring
RotateSpeedfloat
SineScaleFrequencyMultiplerfloat
SineScaleXfloat
SineScaleYfloat
SubUVFrameCountAlongAxesint
SubUVFrameRatefloat
SubUVFrameSizefloat
TransformCenterXfloat
TransformCenterYfloat

Functions

NameDeclaration
GetFontParameterValuenative function bool GetFontParameterValue(name ParameterName, out font OutFontValue, out int OutFontPage)
GetGroupNamenative function bool GetGroupName(name ParameterName, out name GroupName)
GetLinearColorCurveParameterValuenative function bool GetLinearColorCurveParameterValue(name ParameterName, out InterpCurveLinearColor OutValue)
GetLinearColorParameterValuenative function bool GetLinearColorParameterValue(name ParameterName, out LinearColor OutValue)
GetMaterialfinal native function Material GetMaterial()
GetMobileScalarParameterValuenative function bool GetMobileScalarParameterValue(name ParameterName, out float OutValue)
GetMobileTextureParameterValuenative function bool GetMobileTextureParameterValue(name ParameterName, out Texture OutValue)
GetMobileVectorParameterValuenative function bool GetMobileVectorParameterValue(name ParameterName, out LinearColor OutValue)
GetParameterDescnative function bool GetParameterDesc(name ParameterName, out String OutDesc)
GetPhysicalMaterialfinal native function PhysicalMaterial GetPhysicalMaterial()
GetScalarCurveParameterValuenative function bool GetScalarCurveParameterValue(name ParameterName, out InterpCurveFloat OutValue)
GetScalarParameterValuenative function bool GetScalarParameterValue(name ParameterName, out float OutValue)
GetTextureParameterValuenative function bool GetTextureParameterValue(name ParameterName, out Texture OutValue)
GetVectorCurveParameterValuenative function bool GetVectorCurveParameterValue(name ParameterName, out InterpCurveVector OutValue)
GetVectorParameterValuenative function bool GetVectorParameterValue(name ParameterName, out LinearColor OutValue)
SetForceMipLevelsToBeResidentnative function SetForceMipLevelsToBeResident(bool OverrideForceMiplevelsToBeResident, bool bForceMiplevelsToBeResidentValue, float ForceDuration, optional int CinematicTextureGroups = 0)

Default values

TransformCenterX=0.5
TransformCenterY=0.5
PannerSpeedX=0.0
PannerSpeedY=0.0
RotateSpeed=0.0
FixedScaleX=1.0
FixedScaleY=1.0
SineScaleX=0.0
SineScaleY=0.0
SineScaleFrequencyMultipler=1.0
FixedOffsetX=0.0
FixedOffsetY=0.0
MobileTransformCenterX=0.5
MobileTransformCenterY=0.5
MobilePannerSpeedX=0.0
MobilePannerSpeedY=0.0
MobileRotateSpeed=0.0
MobileFixedScaleX=1.0
MobileFixedScaleY=1.0
MobileSineScaleX=0.0
MobileSineScaleY=0.0
MobileSineScaleFrequencyMultipler=1.0
MobileFixedOffsetX=0.0
MobileFixedOffsetY=0.0
FlattenBackgroundColor=(R=0,G=0,B=0,A=255)
bUseMobileSpecular=FALSE
bUseMobilePixelSpecular=FALSE
MobileSpecularColor=(R=1.0,G=1.0,B=1.0,A=1.0)
MobileSpecularPower=16.0
MobileSpecularMask=MSM_Constant
MobileAmbientOcclusionSource=MAOS_Disabled
MobileTextureBlendFactorSource=MTBFS_VertexColor
MobileBaseTextureTexCoordsSource=MTCS_TexCoords0
MobileDetailTextureTexCoordsSource=MTCS_TexCoords1
MobileMaskTextureTexCoordsSource=MTCS_TexCoords0
MobileAlphaValueSource=MAVS_DiffuseTextureAlpha
MobileColorMultiplySource=MCMS_None
MobileOpacityMultiplier=1.0
MobileEmissiveColorSource=MECS_EmissiveTexture
MobileEmissiveColor=(R=1.0,G=1.0,B=1.0,A=1.0)
MobileEmissiveMaskSource=MVS_Constant
MobileEnvironmentAmount=1.0
MobileEnvironmentMaskSource=MVS_Constant
MobileEnvironmentBlendMode=MEBM_Add
MobileEnvironmentColor=(R=1.0,G=1.0,B=1.0,A=1.0)
MobileEnvironmentFresnelAmount=0.0
MobileEnvironmentFresnelExponent=1.0
MobileRimLightingStrength=0.0
MobileRimLightingExponent=2.0
MobileRimLightingColor=(R=1.0,G=1.0,B=1.0,A=1.0)
MobileRimLightingMaskSource=MVS_Constant
bMobileRimFading=FALSE
MobileBumpOffsetReferencePlane = 0.5
MobileBumpOffsetHeightRatio = 0.05
bUseMobileWaveVertexMovement = FALSE
MobileTangentVertexFrequencyMultiplier = .125
MobileVerticalFrequencyMultiplier = .1
MobileMaxVertexMovementAmplitude = 5.0
MobileSwayFrequencyMultiplier=.07
MobileSwayMaxAngle=2.0
MobileDirectionalLightDirection=(X=0.0,Y=-45.0,Z=45.0)
MobileDirectionalLightBrightness=2.0
MobileDirectionalLightColor=(R=255,G=255,B=255)
bMobileEnableBounceLight=false
MobileBounceLightDirection=(X=0.0,Y=45.0,Z=-27.5)
MobileBounceLightBrightness=0.25
MobileBounceLightColor=(R=255,G=255,B=255)
MobileSkyLightBrightness=0.25
MobileSkyLightColor=(R=255,G=255,B=255)
bMobileAllowFog = TRUE
bUseMobileLandscapeMonochromeLayerBlending=FALSE
MobileLandscapeMonochomeLayerColors[0]=(R=255,G=255,B=255)
MobileLandscapeMonochomeLayerColors[1]=(R=255,G=255,B=255)
MobileLandscapeMonochomeLayerColors[2]=(R=255,G=255,B=255)
MobileLandscapeMonochomeLayerColors[3]=(R=255,G=255,B=255)

Inherited

FromMembers
Surface0 properties, 2 functions
Object13 properties, 308 functions