Shader Basics, Blending & Textures • Shaders for Game Devs [Part 1]

Shader Basics, Blending & Textures • Shaders for Game Devs [Part 1]

Freya Holmér

3 года назад

1,360,302 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Iris
Iris - 09.09.2023 01:55

saturate as a name does make sense if you think about it in an audio way instead of a visual way. where like saturation in basic terms is just distorting a signal, essentially clamping it to 0 and 1... kinda.

edit: it's a little bit of a reach i'll admit lol

Ответить
Lucid Warlocks
Lucid Warlocks - 28.08.2023 09:24

You mentioned that one has to chose either to use some functions in the vertex or the fragment shader depending on what will end up with more operations. One example you gave was a mesh in the distance that still has a lot of vertices but very few pixels - this is a case where the fragment shader might end up being the more performant calculation. Is there a way to dynamically decided "where" to put a calculation depending on the distance, LOD or whatever? So it either uses the calculation in the vertex or fragment shader depending on what is larger/smaller?

Ответить
Lucid Warlocks
Lucid Warlocks - 26.08.2023 18:33

Very cool in-depth walkthrough. I am learning Shader Programming on Udemy with different courses and I can really recommend your videos to be of help while watching those courses!

EDIT: Some minutes into your video and I already can say you are way more precise and explanatory than the tutors on udemy. I'd def purchase a course if you provide one with example challenges etc.

Ответить
Wind Kweebec
Wind Kweebec - 24.08.2023 21:38

I want a mango after watching this lecture

Ответить
SonDo 12
SonDo 12 - 11.08.2023 16:34

Thank for your awesome tutorials. what is different between shader and shader graph. Does Shader Graph make games heavier than traditional shaders in Unity or not?

Ответить
DasEvoli
DasEvoli - 05.08.2023 14:17

Thank you for this tutorial. I'm having a blast. I didn't have this vector math in school. Would you recommend learning vector math, trigonometry etc. first before diving into shaders? Or would you recommend just diving in and learning while doing it? I'm already a professional coder so coding is not the problem.

Ответить
Æ Þ
Æ Þ - 05.08.2023 04:39

Thanks!

Ответить
RockyMountainFacet
RockyMountainFacet - 02.08.2023 05:53

What program is this video about? Unity?

Ответить
Frequency Manipulator
Frequency Manipulator - 29.07.2023 17:56

SHOW US THE CAT!!!!

Ответить
Tori Kenyon
Tori Kenyon - 29.07.2023 08:32

Why is ShaderLab is so headass

Ответить
privus priv
privus priv - 27.07.2023 23:19

what's your IQ?

Ответить
andres torres
andres torres - 27.07.2023 21:38

Wow! I just have 20mins here and all my family moved to another room, while I am still hooked with full joy with this video, the way you explain how it is done, how to achieve it and that you will explain it later in more detail 🤯

Thanks for this, excuse me, now I have to pause the video and charge my phone lol

Ответить
wat
wat - 27.07.2023 01:11

Absolutely incredible tutorial

Ответить
Cyan Uranus
Cyan Uranus - 10.07.2023 14:50

I Love WebGL More for 3D Graphics

Ответить
Cyan Uranus
Cyan Uranus - 10.07.2023 14:49

The Programming Languages I Loved are The LightWeight Multi-Paradigm Interpreted Programming Languages like Scheme, C#, ActionScript, Java, Haxe, Lua, Clojure, Dart, Verse and Elixir

Ответить
Cyan Uranus
Cyan Uranus - 10.07.2023 14:48

For Creating 3D Game-Creating Apps for PC

Ответить
Cyan Uranus
Cyan Uranus - 10.07.2023 14:47

I Love WebGL More

Ответить
Code Monster
Code Monster - 07.07.2023 16:59

Not using shaders because you don't wanna learn it is like hiding a finger of yours for no reason. People are gonna notice how did you lost that finger, and when people figure out you were not missing it and just doing what you think is a cool gang sign, they are gonna be annoyed.

Also shaders are so easy it takes active effort to not learn them.

Ответить
Mr. Black
Mr. Black - 05.07.2023 00:38

Right 😊

Ответить
IA
IA - 04.07.2023 21:08

"right?" Are you asking me? I don't know.

Ответить
Piotr Skrzyński
Piotr Skrzyński - 03.07.2023 20:13

Nice but alot of things you need to know beforehand which is a minus, its not 100% basics from the start

Ответить
Nite_Owl
Nite_Owl - 03.07.2023 16:05

Finally got started with this course, really enjoying it so far! Can't believe you're giving this away for free, huge thank you.

Ответить
G Costello
G Costello - 27.06.2023 06:57

Your videos are amazing! This type of content makes me passionate about game dev and want to learn more. I have a quick question about shaders in Unity. Since the standard shader does so much in Unity, when is it beneficial to write your own shaders? At what point do you need custom shaders?

Ответить
dot com
dot com - 26.06.2023 14:11

Hello Freya,

I was wondering what your thoughts were on mesh to mesh blending.
I have seen a few mesh to terrain blending but i havent come across mesh to mesh.
I was wondering why that is and is it possible to do?

Ответить
XR_XharpRazor Axtra
XR_XharpRazor Axtra - 16.06.2023 21:49

⚠⚠⚠ATTENTION⚠⚠⚠ :
do NOT change the input names of the vert and frag functions,
let v be v, let o be o, let i be i,
because in a later episode, one of the Unity Macros will rely on the single letter names, for example :
[PART3] light Attenuation : Unity will expect you to have "v" as your meshdata / appdata,
if you rename your mesh data as something else, Unity will say "Undeclared identifier 'v'"

and because of this, I have been depressed for the last 48 hours (not exaggerated)

Ответить
pooh shmoo
pooh shmoo - 16.06.2023 10:20

Cat shader on the background

Ответить
KIKITO
KIKITO - 15.06.2023 22:53

Does shader progress after you've finished creating the game?

Ответить
Brian London
Brian London - 05.06.2023 22:53

Freya I know I'm pretty late to the party but thank you so much for doing this. You took a lot of the mystery out of a subject that I've been struggling to learn on my own. Looking forward to the next ones.

Ответить
Parrik
Parrik - 04.06.2023 11:55

I love these videos!

Ответить
Necro Master
Necro Master - 10.05.2023 17:49

T-T-The best and ideal woman who will tell you about shaders.ILove 7uuuuuuuu

Ответить
Taylor Knapps
Taylor Knapps - 08.05.2023 01:42

i feel like i understand now why oblivion looked so good in 2006

Ответить
Qma
Qma - 06.05.2023 14:41

- I don't have the words to express my gratitude for sharing such a detailed course for free. The university i'm studying to be a game developer at, which charges $1,500 a year, didn't even teach me the basics like C# interfaces and importing assets into Unity, let alone shaders. As a non-native english speaker i had no problems undertanding you, nor was i bored

- I am insanely happy i've stumbled upon your channel and this video specifically. Perhaps my career will be built through you and what you do. Thank you in advance :)

Ответить
Freestyle
Freestyle - 03.05.2023 09:17

Hi Freya. I've been watching your videos. I have a question.
If I wrote a material definition in other game engine except unity, will that be considered as a shader?

Ответить
I-X X-l
I-X X-l - 03.05.2023 00:48

i cant thank you enough , i wanna marry u LOL <3

Ответить
Abhi
Abhi - 22.04.2023 06:11

I'm learning game dev in university right now and she is really good at teaching complex topics. Thank you for posting!

Ответить
Bobo Saint
Bobo Saint - 18.04.2023 14:02

Everything I'm supposed to know about shader for now is here. Just amazing!

Ответить
Ken Lim
Ken Lim - 23.03.2023 13:57

Thanks for your expertise!

Ответить
Petter Sjöstrand
Petter Sjöstrand - 22.03.2023 20:59

Holy shit. This is SO GOOD! You are absolutely amazing. Great teaching, great knowledge, great content. Love it!

Ответить
Justin Kulczyski
Justin Kulczyski - 22.03.2023 13:08

2 years later this is still very helpful

Ответить
π-rate
π-rate - 21.03.2023 21:30

Great

Ответить
CallingOutBS
CallingOutBS - 20.03.2023 08:11

If you cut out the Uhhhhs and Uuuums this would probably be 15 minutes long.

Ответить
Evvia Accia
Evvia Accia - 11.03.2023 21:55

Shadergraph saves us really :D

Ответить
Alexandre Coulon
Alexandre Coulon - 06.03.2023 02:28

Thanks !

Ответить
Matthew Exline
Matthew Exline - 05.03.2023 08:13

I'm sorry if I missed it, but did you specify why the MeshData struct's vertex:POSITION is a float4? When we pass in t VertexPositionNormalTexture structs, or any other kind of vertex declaration struct, from the game application on the cpu to the gpu, the vertex position always consists of only 3 floats, just like the normal. But here the normal is a float3, which makes sense, but our position is a float4, which does not make any sense to me. Could you please explain why we use float4 for our Position? I'd appreciate it very much.

Ответить
Decespugliatore Nucleare
Decespugliatore Nucleare - 21.02.2023 04:14

hmmm... something protruding and possibly hard hides somewhere in here

Ответить