Node Texture Interpolate - anticto/Mutable-Documentation GitHub Wiki

image


Function

Smoothly and linearly interpolate between two Mutable textures according to a parameter mix factor. If more than 2 textures are input, they will be equally spread onto the [0..1] range and only the two consecutive ones closer to the input factor will be interpolated.


Use Cases

Smoothly change between textures, for instance to let the user customize the character's skin qualities, or two blend two different normal maps corresponding to different body types.


Node Properties

image

Num Tagets: Number of textures between which the interpolation takes place.

WARNING: The interpolation is always made between two consecutive texture indexes, so more than two values are only advised if they represent a single progression or effect. For example, wet skin, normal skin and scaly skin would be a proper use of a texture interpolation node with three inputs. Independent values that can be mixed at the same time with the base texture are better implemented as consecutive texture interpolation nodes. For example, plain skin, wrinkled skin, freckled skin, scarred skin and sunburnt skin are independent, and all five should be able to influence the result to some degree at the same time. In this case, five consecutive texture interpolates of two inputs each would offer all the degrees of freedom necessary to mix them all at the same time.


Input Pins

Factor: Number between 0.0 and 1.0 that determines to what degree two consecutive textures are interpolated. 0.0 will fully apply the texture at target 0, 1.0 will fully apply the highest index target texture. Intermediate values will progressively interpolate between them. For example, if there are four inputs, a factor of 0.6666 will mostly represent the texture given to the Target 2, and a factor of 0.5 will be an interpolation between the textures at Target 1 and 2 applying them both in equal proportion.

Target (index): Texture input for this index.


Output Pins

Texture: Final interpolated texture.