OpenGL Vertex and Fragment Shaders

preview_player
Показать описание
Discusses pipeline and how vertex shaders and fragment shaders work to fill the color of each pixel in a rasterized image.
Рекомендации по теме
Комментарии
Автор

The pace of these videos is perfect for beginners. For people who are new to OpenGL, each concept has to be explained properly to be sufficiently understood. Most OpenGL tutorials on YouTube skip over a lot of the details so I can only thank you for bucking that trend and taking the time to explain things properly.

ryancov
Автор

Vertex Shader: Position and Custom data.
Fragment Shader: RGB color.

larrybai
Автор

great video, great tone, great explanation. THanks.

gubearium
Автор

At 6:18 you meant that the fragment shader runs on the GPU, not on the CPU. Thanks for the videos!

polgomez
Автор

easy to understand tutorial thanks and keep more and more ogl tutorials

drmay
Автор

Very nice style of explanation. I wish there is something like this for Skia.

marinekamlesh
Автор

what is the name of this drawing tool that you're using?

vexedev
Автор

Would be nice if the videos had numbers xD

But nice so far, you explain very slowly and understandable, just sometimes a bit boring if you repeat too often :D

ochgottnochma
Автор

Hi +Jamie King,
If i define verts[] = {color(3 floats), position(2 floats), color, position, color, }
and then i call glEnableVertexAttribArray(0) ----> //attribute 0 for color
glEnableVertexAttribArray(1) ----> // attribute 1 for position

Does the code for the indices[] remain the same ?

If bit confused, how does the glDrawElements() is picking the position ?

chaluvadi
Автор

are these examples available on github? thanks

sansapps
Автор

I believe it is the snipping tool on windows

MichaelMitchellM
Автор

holy shit is trent reznor doing shader tutorials on youtube?

dickheadrecs
Автор

perhaps this shader piece will help you:

const char* vertexShaderCode =
"#version 330\r\n"
"layout(location=0) in vec2 position;"
"void main()"
"{"
" gl_Position = vec4(position, 0.0, 1.0);"
"}";

const char* fragmentShaderCode =
"#version 330\r\n"
"out vec4 daColor;"
"void main()"
"{"
" daColor = vec4(0.0, 1.0, 0.0, 1.0);"
"}";

I think the problem is the opengl verion...perhaps....

alexathlan