Skip to content

noisecrime/Unity-OBBReflectionProbeSupport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity OBB Reflection Probe Support

Screenshot Screenshot

Introduction

This package adds basic support for oriented bounding box projection to Unity Built-in Rendering Pipeline.

The code and shaders come in as an embedded package found in the Packages folder. Simply copy the 'com.noisecrimestudios.obbreflectionprobe' folder from the repository packages folder to your own projects packages folder.

Supported

  • Forward and Legacy Deferred.
  • Renderer.Probes.ReflectionProbes.Simple mode. May require probes to be anchored to the renderers.
  • Single oriented bounding box reflection probe in a scene ( simple use case ).
  • Multiple oriented bounding box reflection probes ( complicated use case ).

Not Supported

  • Deferred.
  • Blended Probes - no support at all - not sure what happens - best to set up renderers to use simple mode.


Screenshot Screenshot

Issues

It should be noted that whilst it technically works Unity’s built-in pipeline simply does not have the required hooks or systems to fully support a custom OBB projection system. The main issue is that Unity still performs various calculations on the original probe axis aligned bounding box which conflicts with the needs of an OBB probe.

This can be worked around via anchoring probes to renderers but that is quite a restriction and can be painful to work with for a project of any complexity.

To fully support OBB projection it's likely you’d need to write your own reflection probe component and ALL necessary subsystems. e.g. tracking renderers and which probes they are affected by, culling probes etc, which is an extensive project with challenges for performance.


Getting Started

Please refer to the OOBB Reflection Probe Support Guide PDF in the documentation folder.


Prerequisites

Unity 2019.4.28f1

This package is in development, and requires Unity 2019.4.28f1

About

Basic support for a single OBB Reflection Probe in Unity built-in renderer

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published