All Projects → Looooong → Unity Srp Vxgi

Looooong / Unity Srp Vxgi

Licence: mit
Voxel-based Global Illumination using Unity Scriptable Render Pipeline

Projects that are alternatives of or similar to Unity Srp Vxgi

Unitydxrtest
A testbed project for Unity real-time ray tracing features
Stars: ✭ 172 (-52.35%)
Mutual labels:  unity, unity3d, graphics
Asynccapturetest
Non-blocking screen capture example with asynchronous GPU readback
Stars: ✭ 191 (-47.09%)
Mutual labels:  unity, unity3d, graphics
Unity Dithered Transparency Shader
Unity material and shader for applying clipped, dithered transparency
Stars: ✭ 174 (-51.8%)
Mutual labels:  unity, unity3d, graphics
Skyboxplus
Basic skybox extensions for Unity
Stars: ✭ 324 (-10.25%)
Mutual labels:  unity, unity3d, graphics
Cloner
An example of use of procedural instancing.
Stars: ✭ 260 (-27.98%)
Mutual labels:  unity, unity3d, graphics
Computestochasticreflections
Compute Stochastic Screen Space Reflections for unity post processing
Stars: ✭ 163 (-54.85%)
Mutual labels:  unity, unity3d, graphics
Retro3dpipeline
A minimal example of a custom render pipeline with the Retro3D shader.
Stars: ✭ 354 (-1.94%)
Mutual labels:  unity, unity3d, graphics
Noiseball3
A Unity example that shows how to use the new implementation of DrawProcedural.
Stars: ✭ 147 (-59.28%)
Mutual labels:  unity, unity3d, graphics
Videoplayereffects
Experimental special effects for VideoPlayer (Unity 5.6 new feature)
Stars: ✭ 252 (-30.19%)
Mutual labels:  unity, unity3d, graphics
Alloy
Alloy physical shader framework for Unity.
Stars: ✭ 244 (-32.41%)
Mutual labels:  unity, unity3d, graphics
Dfvolume
Distance-field volume generator for Unity
Stars: ✭ 161 (-55.4%)
Mutual labels:  unity, unity3d, graphics
Depthinverseprojection
An example showing how to inverse-project depth samples into the view/world space in Unity.
Stars: ✭ 296 (-18.01%)
Mutual labels:  unity, unity3d, graphics
Gltfast
glTF runtime loading library for Unity
Stars: ✭ 156 (-56.79%)
Mutual labels:  unity, unity3d, graphics
Rimlight
Customizable rimlight shader for Unity that includes pulsation and noise scrolling. Give your scenes that extra oomph!
Stars: ✭ 170 (-52.91%)
Mutual labels:  unity, unity3d, graphics
Klaksyphon
Syphon plugin for Unity
Stars: ✭ 149 (-58.73%)
Mutual labels:  unity, unity3d, graphics
Kinovision
Frame visualization utility for Unity
Stars: ✭ 177 (-50.97%)
Mutual labels:  unity, unity3d, graphics
Rcam
Real time volumetric video capture for live visuals
Stars: ✭ 128 (-64.54%)
Mutual labels:  unity, unity3d, graphics
Textureupdateexample
An example showing how to update textures from a native plugin in Unity.
Stars: ✭ 133 (-63.16%)
Mutual labels:  unity, unity3d, graphics
Noiseball2
A small example of procedural modeling with compute shaders.
Stars: ✭ 215 (-40.44%)
Mutual labels:  unity, unity3d, graphics
Rdsystem
Reaction-diffusion system with CustomRenderTexture.
Stars: ✭ 271 (-24.93%)
Mutual labels:  unity, unity3d, graphics

Unity - Scriptable Render Pipeline - Voxel-based Global Illumination

Showcase

Screenshot 1 Screenshot 2

Requirements

  • Unity 2019.
  • Shader Model 4.5 or newer.
  • Graphic API that supports geometry shader (this excludes Metal API).
  • Approximately 1GB of VRAM for highest voxel resolution setting.

Installation

This method is the easiest way to install a package. Just add the following dependency to <project path>/Packages/manifest.json:

{
  "dependencies": {
    "com.looooong.srp.vxgi": "https://github.com/Looooong/Unity-SRP-VXGI.git"
  }
}

If you want to fiddle with the source code while using this package, you can install the package locally.

For more information on how to manage UPM package, please refer to this.

Usage

Enable VXGI Render Pipeline

  • Goto Asset/Rendering/VXGI Render Pipeline Asset to create a new VXGI render pipeline asset.
  • Open Project Settings window by going to Edit/Project Settings....
  • Assign the newly created render pipeline asset to Graphics/Scriptable Render Pipeline Settings.

Enable VXGI Rendering on a Camera

  • Add VXGI component to a Camera.
  • Assign tag MainCamera to the same Camera to preview VXGI rendering in Scene View.
  • Optional: Add VXGI Mipmap Debug to the same Camera to visualize the voxel mipmap volume.

Apply VXGI materials to objects in the Scene

Apply the material that uses one of the following VXGI shaders:

  • VXGI/Standard and VXGI/Standard (Specular setup)
    • Only Albedo, Metallic, Specular, Smoothness, Normal Map and Emission are supported.
  • VXGI/Particles/Standard Unlit
    • Only Additive rendering mode is supported.

Light Sources

Directional light, point light and spot light are supported. Lighting fall-off follows the inverse-squared distance model without range attenuation. The fall-off model will be expanded with more options in the future.

Configuration

VXGI Component Properties

  • Voxel Volume:
    • Follow Camera: make the voxel volume center follow the camera position.
    • Center: the center of the voxel volume in World Space.
    • Bound: the size of the voxel volume in World Space.
    • Resolution: the resolution of the voxel volume.
    • Anti Aliasing: the anti-aliasing level of the voxelization process.
    • Mipmap Filter Mode: specify the method to generate the voxel mipmap volume.
    • Limit Refresh Rate: limit the voxel volume refresh rate.
    • Refresh Rate: the target refresh rate of the voxel volume.
  • Rendering:
    • Indirect Diffuse Modifier: how strong the diffuse cone tracing can affect the scene.
    • Indirect Specular Modifier: how strong the specular cone tracing can affect the scene.
    • Diffuse Resolution Scale: downscale the diffuse cone tracing pass.

VXGI Mipmap Debug Component Properties

  • Mipmap Level: Mipmap level to visualize.
  • Ray Tracing Step: how big is a step when ray tracing through the voxel volume.
  • Filter Mode: visualization filter mode.

Known Issues and Limitations

  • VXGI uses geometry shader, which is not supported by few graphics APIs, e.g., Metal.
  • The content of Unity UI element is not displayed in Scene View, but only bounding Rect Transform is displayed. Unity UI element is displayed normally in Game View.

Contributing

All pull requests are welcome.

License

MIT

Backers

Thank you for your support! 🙏

David Jeske

Acknowledgement

This project is inspired by sonicether/SEGI.

Icons made by Freepik from www.flaticon.com.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].