Giter Site home page Giter Site logo

kobechenyang / unityraytracingplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from afuzzyllama/unityraytracingplugin

0.0 1.0 0.0 35.81 MB

Native plugin for Unity3d that replaces the renderer with a hardware accelerated ray tracer.

License: MIT License

C++ 72.25% C 5.81% C# 13.51% GLSL 8.18% Batchfile 0.26%

unityraytracingplugin's Introduction

Current State

Unity Ray Tracing Plugin

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

Usage

  • 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 under Pixels for Glory => Ray Tracing
    • Set created asset to Scriptable Render Pipeline Settings under Project 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 the MeshFilter
    • Use Ray Tracer Material which uses a PBR model to shade objects

    Ray Tracer Material

Credits

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

unityraytracingplugin's People

Contributors

afuzzyllama avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.