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
- Clone this repository
- Run
npm install
- Navigate into an example folder and run
npm run start
- Compute shader rendering the mandelbrot set
Cube:
- A spinning cube, demonstrating buffer and texture upload
- Demonstrates hot reloading of shaders based on file changes
RTX:
- 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