Proof of concept native plugin for Unity3d that replaces the renderer with a hardware accelerated ray tracer implemented with Vulkan.
Tested on RTX 2080 with NVIDIA Vulkan Beta drivers installed (457.67).
Builds with Vulkan SDK version 1.2.162.1
-
Point to this repository to install as a package in a Unity project
-
In Unity
- Set the Graphics API to Vulkan under
Project Settings => Player
- Create a
Ray Tracing Render Pipeline
underPixels for Glory => Ray Tracing
- Set created asset to
Scriptable Render Pipeline Settings
underProject Settings => Graphics
- Add
Ray Traceable Light
to any light in the scene to have the plugin register it for lighting - Add
Ray Traceable Object
to any object in the scene to have the plugin register it for rendering. Must have at least a valid Mesh assigned in theMeshFilter
- Use
Ray Tracer Material
which uses a PBR model to shade objects
- Set the Graphics API to Vulkan under
Heavily influenced by:
Shaders built with theories referenced in:
Includes zips with versions used to build for:
- glm - OpenGL Mathematics (GLM) library for graphics software based on the OpenGL Shading Language (GLSL) specifications.
- glslang - An OpenGL GLSL and OpenGL|ES GLSL (ESSL) front-end for reference validation and translation of GLSL/ESSL into an internal abstract syntax tree (AST).
- volk - Meta-loader for Vulkan