TextureSplat
Package: Libraries.Game.Graphics.Worlds · Inherits from: Libraries.Language.Object
Stores the textures used for texture splatting. A TextureSplat can contain separate textures for the red, green, blue, and alpha channels, along with a splat texture used to control how textures are blended across a surface. For example, a terrain could use the red channel for grass, the green channel for dirt, the blue channel for rock, and the alpha channel for another terrain material. Each channel texture can be assigned and retrieved independently.
Actions
GetAlpha()
This action gets the texture for the blue channel, if any.
Returns
GetBlue()
This action gets the texture for the blue channel, if any.
Returns
GetGreen()
This action gets the texture for the green channel, if any.
Returns
GetRed()
This action gets the texture for the red channel, if any.
Returns
GetSplat()
This action gets the texture for the actual splat map, which combines the red, green, blue, or alpha channels. If a channel is not defined, it is not used.
Returns
SetAlpha(Libraries.Game.Graphics.Texture alpha)
This action sets the texture for the alpha channel.
Parameters
SetBlue(Libraries.Game.Graphics.Texture blue)
This action sets the texture for the red channel.
Parameters
SetGreen(Libraries.Game.Graphics.Texture green)
This action sets the texture for the green channel.
Parameters
SetRed(Libraries.Game.Graphics.Texture red)
This action sets the texture for the red channel.
Parameters
SetSplat(Libraries.Game.Graphics.Texture splat)
This action sets the texture for the actual splat map, which combines the red, green, blue, or alpha channels. If a channel is not defined, it is not used.
Parameters