In this video I'm going to show you how to implement the spot light effect in OpenGL. This effect is useful for flashlights and even certain types of street lights.
Make sure to watch all the previous tutorials in the "OpenGL For Beginners" playlist at [ Ссылка ]
Please visit [ Ссылка ] to see more of my tutorials on modern OpenGL.
Link to source: [ Ссылка ]
To get the version of the sources that was used in the video checkout the tag TUT_23_SPOT_LIGHT.
OpenGL 4.6 specification: [ Ссылка ]
Special thanks -
Modeling artists:
James Ray Cock - [ Ссылка ], [ Ссылка ]
Gugurun - [ Ссылка ]
Audio:
Title : Jumpscare & Horror Scream Loud @Horrorin
Editing and mixing : [ Ссылка ]
Original content video link : [ Ссылка ]
An Jone - "Time to Spare" - youtube audio library.
Timecodes
0:00 Intro
0:57 Common characteristics of point and spot lights
1:17 Unique characteristics of the spot light
2:06 Example of different cut-off angles
2:42 Transforming the spot light direction
3:56 The cut-off angle
5:46 Graceful decrease of light intensity
7:18 Start of code review
7:27 The fragment shader
9:44 The LightingTechnique class
11:06 Transforming the direction from world to local
11:42 Changes to the application code
Feel free to comment below.
Email: ogldev1@gmail.com
Facebook: [ Ссылка ]
GIthub: [ Ссылка ]
Twitter: @ogldev
One time donations (Paypal): [ Ссылка ]
Patreon: [ Ссылка ]
My gear (Amazon affiliate links):
Camera - Canon EOS M50: [ Ссылка ]
Camera mic - Rode Videomic: [ Ссылка ]
Desktop mic - Rode NT-USB-Mini: [ Ссылка ]
Credits:
[ Ссылка ]
[ Ссылка ]
Enjoy,
Etay Meiri
#opengl #ogldev #opengtutorials
Spot Lights // OpenGL Tutorial #23
Теги
ogldevopenglopengl tutorialsetay meirimodern openglopengl for beginnersgraphics programming3d programmingtriangle renderingshadersopengl c++ tutorialslearning openglopengl trainingopengl tutorial ubuntuopengl tutorial linuxopengl tutorialopengl game developmentopengl dev c++opengl full courseopengl spotlightsopengl spotlightopengl lighting