/nvk-examples

Examples and demos for nvk

Primary LanguageJavaScriptMIT LicenseMIT

Running examples

This repository contains examples and demos for nvk - a Vulkan rendering API for node.js

Some examples use libraries such as gl-matrix or the WebAssembly port of tinyobjloader

To compile shaders at runtime, nvk-essentials is used

Building:

  1. Clone this repository
  2. Run npm install
  3. Navigate into an example folder and run npm run start

Previews:

  • Compute shader rendering the mandelbrot set

  • A spinning cube, demonstrating buffer and texture upload
  • Demonstrates hot reloading of shaders based on file changes

  • VK_NV_raytracing example

  • The most basic example - A good starting point
  • Example on how to setup and use nvk in TypeScript

  • A spinning webcam model using a PBR shader
  • Demonstrates .obj file uploading, uniform buffer objects and window events
  • Demonstrates usage of the window interface