Coder Social home page Coder Social logo

xiexe / xsvolumetrics Goto Github PK

View Code? Open in Web Editor NEW
80.0 3.0 4.0 3.05 MB

World of Warcraft inspired Volumetrics that hold up well in VR with small cost to performance. (You have to not be dumb when placing it though :P)

License: MIT License

ShaderLab 100.00%

xsvolumetrics's Introduction

XSVolumetrics is a package for simple Volumetric Lighting effects, made in the same way as those found in the newer World of Warcraft expansions.

This method does hold up well in VR.

Example of it in actions.

Please note, if you want to make sure you don't see clipping on the edges of the mesh where it intersects, you will need to enable the depth buffer in your scene.

One of the ways you can do this is with post processing, or, a directional light.

For a Directional light, use these settings exactly to have the least impact on performance. If you do not follow this, your performance could possibly suffer.

For post processing, the best way is to enable Depth of Field, and then use these settings. This forces the depth buffer on, but insures that you don't actually have any of that pesky DoF effect in VR. (Please don't actually use DoF in VR.)

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.