Skip to content

Instantly share code, notes, and snippets.

@Acrosicious
Acrosicious / TextureAtlasSurfaceShader.shader
Last active December 15, 2021 10:29
Modified version of Unity Mobile/Bumped Shader -- Supports 2x2 Atlas textures. -- Use x and y in inspector to change Tiling of each texture individually. -- Use z and w in inspector to change Offset of each texture individually.
Shader "Custom/TextureAtlasSurfaceShader"
{
// https://github.com/Acrosicious
// Modified version of Unity Mobile/Bumped Shader
// MIT License
// Supports 2x2 Atlas textures.
//
// Use x and y in inspector to change Tiling of each texture individually.
// Use z and w in inspector to change Offset of each texture individually.