Useful functions to be to be reused in shader
- Depth to Distance
- Depth to World Position
- UNITY_EDITOR emulation : when the #define is used, a rendertexture can be used to simulate a depth camera. In that case, the texture contains the depth (and not the distance as it is for a physical camera) but the library does the conversion between the two modes
Specific functions to display a portal in the scene
- PORTALDOOR : outside view
- PORTALWALL : inside view
- _Portal : rendered texture of the portal frame
Sample Unity project using the Universal Render Pipeline and ARFoundation. (Using a light version of the Triplanar shader)
TriPlanar Shader |
More shaders & samples to come
-
Original Linkedin post : https://www.linkedin.com/feed/update/urn:li:activity:6741697110854397953/
-
LidarToe App: http://www.lidarexperience.com/