Join Pablo Colapinto for an in-depth discussion in this video Introducing shaders and the OpenGL Shading Language (GLSL), part of Up and Running with OpenGL.
- So let's think about the GPU.…We want to give it some instructions for how…to transform and render…whatever it is we send to it.…These instructions are actually complied programs…and we call them shaders.…They specify what we want to do…in the vertex processing…and the fragment processing steps…of the OpenGL pipeline.…We can write shaders in a simple…C-like language called GLSL…for Graphics Library Shading Language.…The word shader comes from the days when…we used these programs to calculate lighting.…
We can still use them for this,…but we can also use them for a lot more.…We want to get used to using them since…the future of OpenGL programming…is all about shaders.…So let's take a look at some basic GLSL data types.…Since GLSL data types exist as part of a pipeline,…they're parameterized by whether they are…inputs or outputs of the program.…We have attributes, which specify…incoming vertex data,…we have some varying data types, which are…passed from the vertex processor…onto the fragment processor,…and we have uniforms, which are properties…
- What is OpenGL?
- Setting up an OpenGL workflow
- Creating a window with GLFW
- Working with geometric primitives
- Rotating, translating, and scaling
- Understanding matrix transformations
- Creating mesh data structures
- Buffering mesh data
- Getting mouse and keyboard input
Skill Level Intermediate
Q: Why am I getting errors saying I don’t have GLEW installed when I try to create the Xcode projects with Cmake?
1) Download, Install, and Run Xcode
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
brew install glew
./bootstrap && make && make install
brew install cmake
cd Exercise Filesmkdir xcodecd xcodecmake -G "Xcode" ..