OpenGL - lighting with the Phong reflection model (part 2 of 2)

  Рет қаралды 14,682

Brian Will

Brian Will

Күн бұрын

Code samples derived from work by Joey de Vries, @joeydevries, author of learnopengl.com/
All code samples, unless explicitly stated otherwise, are licensed under the terms of the CC BY-NC 4.0 license as published by Creative Commons, either version 4 of the License, or (at your option) any later version.

Пікірлер: 12
@abhishektyagi4624
@abhishektyagi4624 3 жыл бұрын
Thank you will.
@glowiever
@glowiever 3 жыл бұрын
specular strength > 1 means the model is not conserving energy right?
@miko-puk-puk
@miko-puk-puk 2 жыл бұрын
Right, the result light value might be greater than the source light value.
@Zentennen
@Zentennen 3 жыл бұрын
What's the advantage of computing the inverse transpose of the model matrix in the vertex shader as opposed to on the cpu? We could have a uniform normal matrix instead that gets passed in cpu-side.
@isaiahche1214
@isaiahche1214 3 жыл бұрын
You are right. The inverse and transpose functions can be really costly on the shader-side, but because this is for demonstration purposes, I'm assuming that he just went ahead and did it in the vertex shader.
@anonymousdog7851
@anonymousdog7851 2 жыл бұрын
How does the reflect() formula work?
@MrMariozzz78
@MrMariozzz78 3 күн бұрын
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?
@Byynx
@Byynx 8 ай бұрын
Can someone explain why specular light usually has "halo" effect. what's the logic?
@MrDjRayner
@MrDjRayner 4 жыл бұрын
If anyone is a bit lost, or just stumbled on this video and is not following the video series I'd recommend watching the following video first, /watch?v=nS3qwFOPieg, and then coming back to watch this video.
@thesituation5315
@thesituation5315 11 ай бұрын
Hi. Do you know how to make this work in 2D?
@zzador
@zzador 2 жыл бұрын
4:10 You might have used the wrong function here. I think you wanted to use the "pow(x, y)" function here and not the "exp(x)" function that only takes one argument. specular = pow(max(dot(R, C), 0), k) * lightColor
@truongvantam4994
@truongvantam4994 11 ай бұрын
please give me the source code of this video
OpenGL - lighting with the Phong reflection model (part 1 of 2)
16:32
OpenGL - PBR (physically based rendering)
12:47
Brian Will
Рет қаралды 29 М.
SUPER tasty dinner for my husband #shorts by Tsuriki Show
00:16
Tsuriki Show
Рет қаралды 2,5 МЛН
How to Sneak Make Up Into Class 💄 #shorts
00:30
BubbleBee
Рет қаралды 15 МЛН
Суд над Бишимбаевым. 24 апреля | ОНЛАЙН
7:26:50
Intro to Graphics 15 - Shading
1:02:59
Cem Yuksel
Рет қаралды 9 М.
Introduction to Phong Lighting
9:44
Suboptimal Engineer
Рет қаралды 11 М.
OpenGL - camera movement
12:34
Brian Will
Рет қаралды 36 М.
Blinn Phong Shading: Theory and Implementation [Shaders Monthly #4]
1:00:06
How This Pen Changed The World
9:17
Primal Space
Рет қаралды 532 М.
OpenGL - Framebuffer Objects
14:37
Brian Will
Рет қаралды 20 М.
OpenGL - shadow maps (for directional lights)
17:32
Brian Will
Рет қаралды 21 М.
I re-coded Minecraft, purely for MAXIMUM FPS
11:26
Element X
Рет қаралды 83 М.
Phong Model
4:37
UCSC CSE160
Рет қаралды 3,5 М.
My operating system created in C# (COSMOS)
5:41
Crystal Development
Рет қаралды 14 М.