UV Rotation - Shader Graph Basics - Episode 42

preview_player
Показать описание
In this shader tutorial, I show how to rotate textures using sine and cosine. Then I show a couple of practical examples using UV rotation.

Here's last week's video on tessellation and displacement:

Here's the playlist for the whole series:

Learn more!

Shader Book Recommendations
------------------------------

Theme Music
Peace in the Circuitry - Glitch Hop

Background Music
Speo - The Little Things

#UnrealEngine #shadergraph #Unity
Рекомендации по теме
Комментарии
Автор

I discovered your channel a few weeks ago and man is it a hidden gem. Thank you so much for sharing your knowledge with us. I really like how you explain how everything works. I shared a link to your channel on a discord I'm part of. Hopefully you get a lot more traffic. Thanks again!

taylorhead
Автор

Thank you so much for your teachings, this channel is a pure gold mine, if not more.

mirceam
Автор

Excited to see what this builds up to. The interior mapping was very informative.

flarkminator
Автор

Love UV manipulation videos! So many cool effects you can do.

literallyjeff
Автор

Great Tutorial! Your such a king for showing it in both engines! <3

ChrisOseProduction
Автор

Super interesting as always! Thanks Ben!!!

peppone
Автор

Thx 4 ur Vids...!
Greetz from Bavaria 🍺 Happy Easter 🐇🐰

googlefuuplayad
Автор

That was great. Really helpful. Thanks.

benjaminlehmann
Автор

Hey Ben, do you know how to disable uv interpolation in shader graph?

shiv-iwnl
Автор

Another ace break down !
Those who are asking for an understanding of the Math and node breakdown
1. Google for what a 2D rotation matrix looks like
2. How to do a matrix multiplication
3. Your centered u & v coords (component mask) become the x & y inputs to the 2D matrix

[ cos 0 -sin 0 ][x] = [ x cos0 - y sin0]
[ sin 0 cos 0 ][y] = [ x sin0 + y cos0]
= [`x ]
[ `y ]

4.To understand how the above formula came to be search for Angle addition formula
5.An easier way to understand
On graph paper draw an arrow sleeping on the Cardinal X axis .Rotate this arrow by some angle (e.g 45). Now the x component of the elevated arrow will be Cos theta.
The y axis will be sin theta (basic trig).
6.Draw an arrow standing on the Cardinal Y axis. Rotate this arrow by the same angle (e.g 45). You will find its new x axis to be - sin theta and new y axis to be cos theta.
7. This gives you an intuition as to why the matrix has a - sin theta

Cheers
b

behrampatel
Автор

Could anyone link to the Tree Branch texture being used in this video?

MrAdamJW
Автор

Thank you for this! Question: Do we need to treat normal maps differently because of rotation?

jazznezzz
Автор

Did you forget to add the clip about creating this in Unity?

anttiv
Автор

Ha ha ha, that's funny. Today you make a colorful lollipop ~

meowyang
Автор

...wait a minute, Unreal's cosine and sine nodes use 0...1 instead of radians? what!?

taguetrash
Автор

Ben, I really like your videos, but I would like a more detailed explanation where these formulas come from. For example: u' = u*cos(x) + v*sin(x); v' = v*cos(x) - u*sin(x)

ritordp