GithubHelp home page GithubHelp logo

jonike / rmvr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hdlx/rmvr

0.0 2.0 0.0 27.43 MB

VR Compatible Raymarching for Unity

License: MIT License

C# 36.73% HLSL 36.37% GLSL 15.65% ShaderLab 11.26%

rmvr's Introduction

RMVR

VR Compatible Raymarching for Unity https://vimeo.com/302491068

RMVR sets up a raymarching environment in Unity, allowing you to play with distance functions and to display procedural shapes and fractals. Have a look on the project sample scene. On the camera is the Raymarching component. Everything happens here.

The 3 tabs correspond to 1 - Optimisation, 2 - Shading, and 3 - Distance function to use and variable passed to it. Try some of the included presets.

This tool is also meant to work in VR. Stereo is optimised using a screen space reprojection technique. You can shade the shapes like you would with a standard material, with additionnal features adapted from raymarching demos, like pseudo-SSS, AO, or glow. You can mix meshes and raymarching with depth awareness.

Write your own distance function into one of the 8 "maps" slots in the "Assets/Raymarching/Resources/Shaders/CGInc/RMMaps.cginc" file. It has to return some custom struct. This allows you to return a procedural color and to use it in the shading. Also note that some variables are systematically passed to the distance function. The others CGINCLUDE files contain a lot of usefull functions for distance fields, shader maths, noises. Theses are not well documented yet, but should look familiar to shader programmers.

Originally developed at and for http://www.small-studio.io/

I just made this project public. A cleaner documentation and maybe howto videos are coming.

rmvr's People

Contributors

hdlx avatar

Watchers

 avatar  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.