Skip to content

unitycoder/Realtime-Diffraction-PBR

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Realtime-Diffraction-PBR

A Unity implementation of a practical, diffraction-aware, material model presented in the publication "A Practical Real-Time Model for Diffraction on Rough Surfaces" - Clausen et al. 2024

Github_Title

Developed and tested with Unity 2021.3.6f1, Universal RP 12.1.7, OpenXR Plugin 1.4.2

Ultra Quick Start

  • Download repository and open as Unity project (tested on Unity 2021.3.6f1)
  • Import test scene package from Resources link
  • Open the test scene
  • For VR to work properly in the test scene, the "Starter Assets" from the xr.interaction.toolkit package have to be imported via the Unity package manager

Integration into existing project

  • The diffraction material implementation is based on the Universal Rendering Pipeline 12.1.7. We copied the minimum set of modified shaders into this repository. The rest of the shaders are assumed to come from your local URP 12.1.7 package. It may work on other URP versions as well, however we have not tested it, or validated the visual result
  • Simply assign the "CustomShaders/DiffractionLit" material to any object with an existing UV mapping

Resources

Museum test scene with some materials

https://1drv.ms/u/s!Ap1NX8WBfJHQg6wuDvZ5oTYSAKzumw

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • HLSL 61.8%
  • C# 22.2%
  • ShaderLab 16.0%