Post

GLSL Shader Programming with OpenGL

GL Rendering

A c++ OpenGL rendering practice, including various shaders, GLSL programming, illumination models; transparency, shadows; modeling, heterogeneous textures; camera and motion.

Project Link on GitHub

Table of Contents

Features

  • A rendering practice based on OpenGL, including many basic items for classic pipelines:
  • GLSL language of GPU programming for implementations of different shaders (vertex, fragment, geometric)
  • Shadow mapping for quick stratum and shadow calculation
  • Various illumination models (of local) and dual-sensitivity textures
  • Semi-opaque light mixing for tansparent objects and perspective adjustment
  • Graphic assistance for on-the-fly camera motion and model reading
  • Supersampling and bias correction

Installation

1
2
3
4
5
# for Ubuntu and Debian-based
sudo apt install pkg-config freeglut3 libglew-dev libglfw3 libsoil-dev libglm-dev
cd build
cmake ../
make

Usage

1
2
3
cp build/CGrender run/
cd run
./CGrender

Demo

Scene_Demo_1 Scene_Demo_2

This post is licensed under CC BY 4.0 by the author.