Introduction to Phong Lighting

preview_player
Показать описание
In this GLSL shader tutorial, we will go over the basics of Phong lighting. We start off by understanding the importance of lighting in computer graphics. Then we will look at the intuition behind the Phong lighting equation. Finally, we add ambient, diffuse, and specular lighting to our GLSL fragment shader.

== [ Resources ] ==

== [ Timestamps ] ==
00:00 Intro to GLSL Shaders
01:12 What is Phong Lighting?
01:45 Ambient vs Diffuse vs Specular
03:02 Ambient Lighting
04:16 Diffuse Lighting
05:57 Specular Lighting
08:26 Phong Lighting Demos

== [ Tags ] ==
#suboptimal #glsl #shaders
Рекомендации по теме
Комментарии
Автор

Tomorrow exam in real time computer graphics, thank you very much!

justanotherhotguy
Автор

Honestly, i think your teaching style is awesome, everything was so clear and understandable. This is awesome man!

AstrusHD
Автор

It seems the best lightning tutorial so far.

Byynx
Автор

You can use a halfway vector instead of reflect for better performance

Iridium.
Автор

dude i have not been able to process the learnopengl tutorials on this topic, this made it so much easier to understand!

stoup
Автор

Liked and subscribed! The most clearer explanation for this difficult topic. Super helpful. Many thanks

JackLeiLing
Автор

insanely simple and straight to the point! thanks

glebaltfromrovia
Автор

your voice is so soothing oh my gawddd

pingwinek_
Автор

Exactly what I was looking for, thanks. Keep up the good work

ksalarang
Автор

Thank you very clear simple but enough detailed explanation especially graphics of the calculations are very useful thank you again for this great video

online.python.dersim
Автор

Hi. I've been trying to learn how lighting works, and I'm having a really hard time with this. I understand the base of the whole idea, but the part I'm having a hard time with is how to make it work in 2D. I was wondering if you know how to port it to two dimensions? I can't really find anything online specifically regarding 2D phong shading.

thesituation
Автор

So, what I found confusing is that the vector is named lightSource... Isn't this actually the lightDirection and the lightSource is at a point infinitely far away, so that all light rays hit the scene at the same angle?

janreinsch
Автор

awesome video. also, what theme did you use for vscode?

irice
Автор

kind of off topic, but what theme do you use?

EliasWolfy
Автор

i use opegl in dev c++ gl library i guess it pre 2.0 so it dont use GLSL ...can i use phong light with 2.0 pre.version?

MrMariozzz
Автор

1:23 Phong lighting _hasn’t_ been common for the past decade. The problem with Phong is that it isn’t energy preserving.

Using a physically correct BRDF replaced it.

MichaelPohoreski
Автор

Hi when I import model in three js. model load with light what should I do??

nexusplus
Автор

If fragment shaders work on a pixel by pixel basis, does the rasterizer also give eye-direction vector values for each pixel? I can't understand how else you could pull off specular lighting.

diddy_dante
Автор

Wonderful vid!! Can you make more vida on shaders?

javifontalva
Автор

Yes more shaders! Curious, what was your roadmap for learning all this? I'm reading through the book of shaders, but once I'm off it, I feel totally lost :(

kevinto