The '''MultiTextureFader''' component can be used with the [[Component:PBSLerpMetallic]] or [[Component:PBSLerpSpecular]] to lerp multiple textures rather than just one.
|FirstTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv0=true| Usually set to the Texture set 0 of a lerping material.
|SecondTexture|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv1=true| Usually set to the Texture set 1 of a lerping material. The type of texture set like albedo or emission this one is driving should be the same as <code>FirstTexture</code>.
|Lerp|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv2=true| The lerp field of the material. Can be left blank if using multiple of this component on the same material.
|Position|Float|
|Position|Float| The position in the list of <code>Textures</code> to fade between. If this is a decimal, the <code>FirstTexture</code> and <code>SecondTexture</code> will be set to textures in <code>Textures</code> that are at the positon of floor and ceiling of this value.
|Textures|{{RootFieldType|SyncAssetList`1|A}}|TypeAdv4=true| A list of textures to lerp between and set <code>FirstTexture</code> and <code>SecondTexture</code> to using <code>Position</code> to determine the texture from this list.
}}
}}
== Behavior ==
== Usage ==
Can be attached to a slot and given a list of materials. Using a [[Component:PBSLerpMetallic]] or [[Component:PBSLerpSpecular]] with this component can lerp the list of <code>Textures</code> using <code>Position</code>. The lerp of the material can be driven via the <code>Lerp</code> on this component.
Usually set to the Texture set 1 of a lerping material. The type of texture set like albedo or emission this one is driving should be the same as FirstTexture.
The position in the list of Textures to fade between. If this is a decimal, the FirstTexture and SecondTexture will be set to textures in Textures that are at the positon of floor and ceiling of this value.
A list of textures to lerp between and set FirstTexture and SecondTexture to using Position to determine the texture from this list.
Usage
Can be attached to a slot and given a list of materials. Using a Component:PBSLerpMetallic or Component:PBSLerpSpecular with this component can lerp the list of Textures using Position. The lerp of the material can be driven via the Lerp on this component.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.