Skip to content

rmatab/physically-based-rendering

Repository files navigation

PBR Demo

Experiment after reading Physically Based Rendering by Imad Rahmoune.

Renders a textured sphere using the Cook-Torrance BRDF (GGX normal distribution, Smith geometry, Fresnel-Schlick) with tangent-space normal mapping and a single point light.

Dependencies

  • OpenGL 3.3+
  • GLFW3 (window and input)
  • GLEW (OpenGL extension loading)
  • stb_image.h (included in the repo)

On Debian/Ubuntu:

sudo apt install libglfw3-dev libglew-dev

Build & Run

make
./pbr

Run from the current directory (shaders and textures are loaded relative to the working directory).

Controls

Left-drag: Orbit camera Scroll: Zoom Escape: Quit

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages