TerrainTextureStandIn

Package: Libraries.Game.Graphics.Worlds · Inherits from: Libraries.Game.Graphics.Texture, Libraries.Language.Object, Libraries.Game.Disposable

A TerrainTextureStandIn stands for a terrain's splat texture at its place in the terrain's block of texture places (WorldTerrain). The terrain's models are drawn with it, so they are drawn in the block's texture group, where every texture the splat shader needs is linked. The shader reads a model's texture from the group bound for the draw, by its place inside that group, so this returns that place as its texture index too. It is never loaded or disposed of itself; the splat texture it stands for is.

Actions

GetVulkanTextureIndex()

This action returns the stand-in's place inside its texture group, which is where the shader finds it.

Returns

integer: The place inside the group.

Inherited Actions

66 actions from Libraries.Game.Graphics.Texture
3 actions from Libraries.Language.Object