Add empty space between tiled texture

Node-based Shader Editor

Add empty space between tiled texture

Postby chappie » Fri Jun 29, 2018 4:36 pm

Hi i have a 2d texture, i have it set to tiled, and i animate it using UV offset. I want to add extra empty space on the x axis between each tile. Is there a way to do this? The reason i am not using a fixed texture with that spacing is because i want to adjust the tile space amount within the game.

I have attached the shader overview, and what i am trying to achieve. Any help appreciated.

Shader:
ShaderOverview.png
ShaderOverview.png (248 KiB) Viewed 1031 times


Sprite Texture
SpriteTexture.png
SpriteTexture.png (4.33 KiB) Viewed 1031 times


Desired Result
DesiredResult.png
DesiredResult.png (9.34 KiB) Viewed 1031 times
chappie
 
Posts: 1
Joined: Fri Jun 29, 2018 4:19 pm

Re: Add empty space between tiled texture

Postby Ricardo Teixeira » Sat Jun 30, 2018 5:21 pm

Hello,

Depends on how you intend to use it but I recommend examining the Improved Read From Atlas sample as a starting point.

Image

Thanks!
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm

Re: Add empty space between tiled texture

Postby Ricardo Teixeira » Mon Jul 02, 2018 10:54 am

Don't forget to set your texture to clamp ;)
Sales & Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
User avatar
Ricardo Teixeira
 
Posts: 954
Joined: Fri Aug 09, 2013 2:26 pm


Return to Amplify Shader Editor

Who is online

Users browsing this forum: No registered users and 0 guests