|
G1R AngelScript
Scripting reference for the Gothic 1 Remake
|
Material Instances may be used to change the appearance of a material without incurring an expensive recompilation of the material. General modification of the material cannot be supported without recompilation, so the instances are limited to changing the values of predefined material parameters. The parameters are statically defined in the compiled material by a unique name, type and default value. More...
Public Member Functions | |
Rendering|Material | |
| UTexture | GetTextureParameterValue (FName ParameterName) |
| Get the MIC texture parameter value. | |
| FLinearColor | GetVectorParameterValue (FName ParameterName) |
| Get the MIC vector parameter value. | |
| void | SetNaniteOverrideMaterial (bool bInEnableOverride, UMaterialInterface InOverrideMaterial) |
| Set an override material which will be used when rendering with nanite. | |
| float32 | GetScalarParameterValue (FName ParameterName) |
| Get the scalar (float) parameter value from an MIC. | |
| Public Member Functions inherited from UMaterialInstance | |
| void | SetbOverrideSubsurfaceProfile (bool Value) |
| Defines if SubsurfaceProfile from this instance is used or it uses the parent one. | |
| bool | GetbOverrideSubsurfaceProfile () const |
| Defines if SubsurfaceProfile from this instance is used or it uses the parent one. | |
| UPhysicalMaterial | GetPhysicalMaterial () const |
| Return a pointer to the physical material used by this material instance. | |
| UPhysicalMaterial | GetPhysicalMaterialFromMap (int Index) const |
| Return a pointer to the physical material from mask map at given index. | |
| UPhysicalMaterialMask | GetPhysicalMaterialMask () const |
| Return a pointer to the physical material mask used by this material instance. | |
| UMaterial | GetBaseMaterial () |
| Walks up parent chain and finds the base Material that this is an instance of. Just calls the virtual GetMaterial(). | |
| FMaterialParameterInfo | GetParameterInfo (EMaterialParameterAssociation Association, FName ParameterName, UMaterialFunctionInterface LayerFunction) const |
| UMaterialInterface | GetNaniteOverideMaterial () const |
| Get the associated nanite override material. | |
| void | SetForceMipLevelsToBeResident (bool OverrideForceMiplevelsToBeResident, bool bForceMiplevelsToBeResidentValue, float32 ForceDuration, int CinematicTextureGroups=0, bool bFastResponse=false) |
| Force the streaming system to disregard the normal logic for the specified duration and instead always load all mip-levels for all textures used by this material. | |
| EBlendMode | GetBlendMode () const |
| Public Member Functions inherited from UObject | |
| bool | MarkPackageDirty () const |
| void | RemoveFromRoot () |
| bool | GetIsRooted () const |
| bool | IsTransient () const |
| bool | Modify (bool bAlwaysMarkDirty=true) |
| void | SetTransactional (bool bTransactional) |
| bool | IsSupportedForNetworking () const |
| UClass | GetClass () const |
| UObject | GetOuter () const |
| UObject | GetTypedOuter (TSubclassOf< UObject > Target) const |
| Traverses the outer chain searching for the next object of a certain type. | |
| UPackage | GetOutermost () const |
| UPackage | GetPackage () const |
| void | AddToRoot () |
| UWorld | GetWorld () const |
| FName | GetName () const |
| FString | GetFullName (const UObject StopOuter=nullptr) const |
| FString | GetPathName (const UObject StopOuter=nullptr) const |
| bool | IsA (const UClass Class) const |
| Returns true if this object is of the specified type, or a child of that type. | |
| void | SaveConfig () |
| void | LoadConfig () |
| void | ReloadConfig () |
| void | CopyScriptPropertiesFrom (const UObject OtherObject) |
| void | opCast (?&Address) const |
| FString | ToString () const |
Static Public Member Functions | |
Static Functions | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UMaterialInstance | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UMaterialInterface | |
| static UClass | StaticClass () |
| Static Public Member Functions inherited from UObject | |
| static UClass | StaticClass () |
Public Attributes | |
PhysicalMaterial | |
| UPhysicalMaterialMask | PhysMaterialMask |
| Physical material mask to use for this graphics material. Used for sounds, effects etc. | |
| Public Attributes inherited from UMaterialInstance | |
| TArray< FDoubleVectorParameterValue > | DoubleVectorParameterValues |
| DoubleVector parameters. | |
| TArray< FTextureParameterValue > | TextureParameterValues |
| Texture parameters. | |
| UMaterialInterface | Parent |
| Parent material. | |
| FMaterialOverrideNanite | NaniteOverrideMaterial |
| An override material which will be used instead of this one when rendering with Nanite. | |
| TArray< FScalarParameterValue > | ScalarParameterValues |
| Scalar parameters. | |
| TArray< FVectorParameterValue > | VectorParameterValues |
| Vector parameters. | |
| UPhysicalMaterial | PhysMaterial |
| Physical material to use for this graphics material. Used for sounds, effects etc. | |
| TArray< FRuntimeVirtualTextureParameterValue > | RuntimeVirtualTextureParameterValues |
| RuntimeVirtualTexture parameters. | |
| TArray< FSparseVolumeTextureParameterValue > | SparseVolumeTextureParameterValues |
| Sparse Volume Texture parameters. | |
| TArray< FFontParameterValue > | FontParameterValues |
| Font parameters. | |
| FMaterialInstanceBasePropertyOverrides | BasePropertyOverrides |
| bool | bOverrideSubsurfaceProfile |
| Defines if SubsurfaceProfile from this instance is used or it uses the parent one. | |
| UPhysicalMaterial | PhysicalMaterialMap |
| Physical material map used with physical material mask, when it exists. | |
| Public Attributes inherited from UMaterialInterface | |
| UAssetImportData | AssetImportData |
| Importing data and options used for this material. | |
| FLightmassMaterialInterfaceSettings | LightmassSettings |
| The Lightmass settings for this object. | |
| USubsurfaceProfile | SubsurfaceProfile |
| SubsurfaceProfile, for Screen Space Subsurface Scattering.. | |
| TArray< TObjectPtr< UAssetUserData > > | AssetUserData |
| Array of user data stored with the asset. | |
| UNeuralProfile | NeuralProfile |
| Neural network profile. For internal usage, not editable/visible. | |
| FSoftObjectPath | PreviewMesh |
| The mesh used by the material editor to preview the material. | |
| UThumbnailInfo | ThumbnailInfo |
| Information for thumbnail rendering. | |
| const UPhysicalMaterialMask | PhysicalMaterialMask |
| Return a pointer to the physical material mask used by this material instance. | |
| const UPhysicalMaterial | PhysicalMaterial |
| Return a pointer to the physical material used by this material instance. | |
| const UMaterialInterface | NaniteOverideMaterial |
| Get the associated nanite override material. | |
| const EBlendMode | BlendMode |
| const UMaterial | BaseMaterial |
| Walks up parent chain and finds the base Material that this is an instance of. Just calls the virtual GetMaterial(). | |
| Public Attributes inherited from UObject | |
| const UClass | Class |
| const UObject | Outer |
| const UPackage | Outermost |
| const UPackage | Package |
| const UWorld | World |
| const FName | Name |
| const bool | IsRooted |
Material Instances may be used to change the appearance of a material without incurring an expensive recompilation of the material. General modification of the material cannot be supported without recompilation, so the instances are limited to changing the values of predefined material parameters. The parameters are statically defined in the compiled material by a unique name, type and default value.
| float32 GetScalarParameterValue | ( | FName | ParameterName | ) |
Get the scalar (float) parameter value from an MIC.
| FLinearColor GetVectorParameterValue | ( | FName | ParameterName | ) |
Get the MIC vector parameter value.
| void SetNaniteOverrideMaterial | ( | bool | bInEnableOverride, |
| UMaterialInterface | InOverrideMaterial ) |
Set an override material which will be used when rendering with nanite.
|
static |
| UPhysicalMaterialMask PhysMaterialMask |
Physical material mask to use for this graphics material. Used for sounds, effects etc.