Skip to content

A simple Blinn-Phong lighting implementation in Vulkan

Notifications You must be signed in to change notification settings

amitshky/phongLighting

Repository files navigation

phongLighting

A simple Blinn-Phong lighting implementation in Vulkan.

Prerequisites

Build and Run

  • Configure and build the project,
cmake -B build -S .
cmake --build build
  • Then navigate to the output file and run it (run it from the root directory of the repo). For example,
./build/<path_to_executable>

OR (in VSCode)

  • Start debugging (Press F5) (Currently configured for Clang with Ninja and MSVC for Windows)

OR (using bat scripts from scripts folder)

  • Run them from the root directory of the repo. For example:
./scripts/config-clang-rel.bat
./scripts/build-clang.bat
./scripts/run-clang.bat

Usage

  • Left-click and drag the mouse to move the camera
  • Left-click and WASD to move the camera forward, left, back, and right respectively.
  • Left-click and E and Q to move the camera up and down.
  • R to reset the camera
  • Ctrl+Q to close the window

Screenshots

  • checkout 0c62a96cf88554043d43ffb24e03ed8f914e08fe

References