Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Hey!

I am trying to post more videos about visual aspects of game dev - right now I try my hands on shaders.

In this video I will show how to include object scale in the shader calculation as this is one of those things that not many people show when creating shaders but it's pretty important when you want to actually use a shader in a game project.


I hope that you will find this tutorial useful :)

-Peter

Files

Previews only

How to use object scale in shader graph - Unity tutorial

To use the scale of an object in shader graph we need to modify UV values that we pass to the rest of our shader. In this video I will show you how to use Object node and Tiling and Offset node to do just that. @Jettelly Learn all there is about shaders in Unity https://learn.jettelly.com/unity-shader-bible/ Learn to write more maintainable code using Design patterns by making a 2d platformer game: https://courses.sunnyvalleystudio.com/ Join the discord: https://discord.gg/RQEtYHz You can support me through Patreon: https://www.patreon.com/sunnyvalleystudio #unity2d #shader 00:00 Intro 00:29 Water shader 01:54 Problem - We don't scale UVs 03:18 Tiling and Offset node 04:31 Including Object scale 05:58 Testing

Comments

No comments found for this post.