nvk-examples
nvk-examples copied to clipboard
Examples and demos for nvk
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:
- Clone this repository
- Run
npm install - 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
nvkin TypeScript
Webcam:
- A spinning webcam model using a PBR shader
- Demonstrates
.objfile uploading, uniform buffer objects and window events
Window:
- Demonstrates usage of the window interface