Skip to content
Examples and demos for nvk
Branch: master
Clone or download
Latest commit 4dc7797 Jul 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
compute
cube Update Jul 2, 2019
live-shaders Fix typo Apr 3, 2019
rtx Update utils.mjs Jun 24, 2019
triangle Remove strict BigInt type changes Apr 16, 2019
typescript Fix imports Jul 5, 2019
webcam Update Jul 2, 2019
window Update index.mjs Mar 20, 2019
.gitattributes Initial commit Jan 9, 2019
.gitignore Adding files Jan 9, 2019
LICENSE Initial commit Jan 9, 2019
README.md Update README.md Apr 25, 2019
package.json Fix imports Jul 5, 2019

README.md

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:

  • Compute shader rendering the mandelbrot set

Cube:

  • A spinning cube, demonstrating buffer and texture upload

Live Shaders:

  • Demonstrates hot reloading of shaders based on file changes

RTX:

  • VK_NV_raytracing example

Triangle:

  • The most basic example - A good starting point

TypeScript:

  • Example on how to setup and use nvk in TypeScript

Webcam:

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

Window:

  • Demonstrates usage of the window interface
You can’t perform that action at this time.