Custom Shaders
Created using OpenGL and my personal C++ Engine
Overview
This project is an exploration in Shaders. It features:
|
|
The focus of this project was altering vertices and creating custom shader effects. I used a simple cube to demonstrate per-pixel lighting and fog as well as the effects of the two custom shaders I made on the vertices of the cube. This project was done after the Simple Miner project which established the ability for my personal C++ Engine, the Green Engine, to render 3D worlds. Since this project was just working with shaders and vertices it didn't need more than a single cube to work with.
The video above displays everything that this project is able to do. A small light does a figure eight around the scene, demonstrating the per-pixel lighting in combination with the normal maps on the cube. The red gem that is a part of the texture on the cube shows emissive lighting and glows even when it is in shadow. The further away the player gets from the cube, the more it is enveloped by a thick, gray fog, as well. This project also used FBO rendering, which helped when it came to using the shader effects.
This project is also the first that I've done that used GLSL, which is necessary for the shader effects. The functionality of creating the vertex and fragment shaders, and linking them, is a part of the Green Engine now as well due to this project. All of the code for the custom shaders can be found linked below. If you have any questions about the project, please feel free to contact me! I would love to answer them.
The video above displays everything that this project is able to do. A small light does a figure eight around the scene, demonstrating the per-pixel lighting in combination with the normal maps on the cube. The red gem that is a part of the texture on the cube shows emissive lighting and glows even when it is in shadow. The further away the player gets from the cube, the more it is enveloped by a thick, gray fog, as well. This project also used FBO rendering, which helped when it came to using the shader effects.
This project is also the first that I've done that used GLSL, which is necessary for the shader effects. The functionality of creating the vertex and fragment shaders, and linking them, is a part of the Green Engine now as well due to this project. All of the code for the custom shaders can be found linked below. If you have any questions about the project, please feel free to contact me! I would love to answer them.
If you would like to view all of the GLSL files for these custom shaders, then please click this link here!
(This link will take you to bitbucket)
(This link will take you to bitbucket)