![Shader Graph Texture Atlas Handler [SubGraph + Script Integration]](https://assetstorev1-prd-cdn.unity3d.com/key-image/d761b307-0e37-440c-9507-c1085214352f.jpg)
Shader Graph Texture Atlas Handler [SubGraph + Script Integration]
LeLapin
$0.0
(no ratings)
Jump AssetStore
This package features a SubGraph for the Shader Graph that allows easy Texture Atlas handling, from texture index and UVs.Package should be compatible with any SRP, only the demo scene uses the URP.This package contains the base Sub Graph that allows to easily and cleanly handle texture atlases in the Shader Graph, as well as a complete example of its usage, featuring a premade grass shader. An example of a texture atlas (2×2) used with the example shader is used on four plants, each sharing the same mesh and material, but different tiling index. This allows to reduce draw calls, by having only one mesh and material for multiple different objects.Clean, easy and fast texture atlas tiling using Shader Graph.Easy script integration using built-in tiling handler class.Be aware that the tiling only works with materials that use GPU Instancing.The "HandleTexuteAtlas" node has 4 inputs :-Atlas Texture-Base UV-Texture resolution (width or height in pixels of a 'subtexture' in the atlas)-Texture tile indexThe index can be set as a Shader property, or via the GetTileIndex custom function (see documentation for more details and code integration)