/RTR-Reflectance-Models

A visualisation and comparison of Blinn-Phong, Cook-Torrance, Oren-nayar and Toon shading models in OpenGL.

Primary LanguageC++MIT LicenseMIT

Real-time Rendering Reflectance Models

A visualisation and comparison of Blinn-Phong, Cook-Torrance, Oren-nayar and Toon shading models in OpenGL.

About this repo

This code delves into the intricacies of Blinn-Phong, Cook-Torrance, Oren-Nayar, and Toon shading models, providing a dynamic platform for visualizing their effects on various 3D models simultaneously. This repository not only facilitates the exploration of individual shaders but also enables real-time adjustments to shader parameters, offering an immersive experience into how these parameters influence the rendered scene, all in the context of real-time rendering for enhanced graphics applications.

Demo video

Watch the video

Getting Started

Dependencies

Installing

  1. Clone this repository.
git clone https://github.com/borjagq/RTR-Reflectance-models/
  1. Open the project Rendering.xcodeproj

  2. Build and run

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

This repository incorporates essential components from the open-source libraries stb and Dear ImGui. These libraries provide the file read/write and GUI functionalities. For further details about these libraries, visit their GitHub repositories.